Skip to content

Commit 66ae127

Browse files
yosuerrcdexta
authored andcommitted
Added laneId as prop on new card template
1 parent 314b9c2 commit 66ae127

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Lane.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ class Lane extends Component {
107107
}
108108

109109
renderNewCard = () => {
110-
const {newCardTemplate} = this.props
110+
const {newCardTemplate, id} = this.props
111111
if (newCardTemplate) {
112112
const newCardWithProps = React.cloneElement(newCardTemplate, {
113113
onCancel: this.hideEditableCard,
114-
onAdd: this.addNewCard
114+
onAdd: this.addNewCard,
115+
laneId: id
115116
})
116117
return <span>{newCardWithProps}</span>
117118
} else {

0 commit comments

Comments
 (0)