Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ruipgil committed Nov 23, 2016
1 parent 1fb79a7 commit e5c434e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reducers/segments.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const addSegmentPoint = (state, action) => {
}

return state.updateIn(['segments', id, 'points'], (points) => {
return points.insert(action.index, fromJS(pointA))
return points.insert(action.index, new PointRecord(pointA))
})
}

Expand Down Expand Up @@ -300,7 +300,7 @@ const toggleSegProp = (state, id, prop, force, propSet = defaultPropSet) => {
const toggleSegmentDisplay = (state, action) => {
const id = action.segmentId
state = toggleSegProp(state, id, 'display')
return state.setIn(['segments', id, 'display'], !state.get('segments').get(id).get('display'))
return state.setIn(['segments', id, 'display'], state.get('segments').get(id).get('display'))
}

const toggleSegmentEditing = (state, action) => {
Expand Down

0 comments on commit e5c434e

Please sign in to comment.