File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ import PropTypes from 'prop-types'
33import { LaneTitle , NewLaneButtons , Section } from 'rt/styles/Base'
44import { AddButton , CancelButton } from 'rt/styles/Elements'
55import NewLaneTitleEditor from 'rt/widgets/NewLaneTitleEditor'
6+ import uuidv1 from 'uuid/v1'
67
78class NewLane extends Component {
89 handleSubmit = ( ) => {
9- this . props . onAdd ( { title : this . getValue ( ) } )
10+ this . props . onAdd ( {
11+ id : uuidv1 ( ) ,
12+ title : this . getValue ( )
13+ } )
1014 }
1115
1216 getValue = ( ) => this . refInput . getValue ( )
Original file line number Diff line number Diff line change 11import update from 'immutability-helper'
2- import uuidv1 from 'uuid/v1'
32
43const LaneHelper = {
54 initialiseLanes : ( state , { lanes} ) => {
@@ -42,7 +41,7 @@ const LaneHelper = {
4241 } ,
4342
4443 addLane : ( state , lane ) => {
45- const newLane = { id : uuidv1 ( ) , cards : [ ] , ...lane }
44+ const newLane = { cards : [ ] , ...lane }
4645 return update ( state , { lanes : { $push : [ newLane ] } } )
4746 } ,
4847
You can’t perform that action at this time.
0 commit comments