Skip to content

Commit

Permalink
fix(editor): fix timepoint checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Mar 7, 2018
1 parent e204e04 commit 6dbe55e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/editor/components/pattern/PatternStopCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ class PatternStopContents extends Component {
_onChangeTimepoint = () => {
const {activePattern, index, patternStop, saveActiveEntity, updateActiveEntity} = this.props
const patternStops = [...activePattern.patternStops]
patternStops[index].timepoint = !patternStop.timepoint
const newValue = patternStop.timepoint ? 0 : 1
patternStops[index].timepoint = newValue
updateActiveEntity(activePattern, 'trippattern', {patternStops})
saveActiveEntity('trippattern')
}
Expand Down

0 comments on commit 6dbe55e

Please # to comment.