Skip to content

Commit

Permalink
Fix: Rerender when clicking on a snap button. props state is now each…
Browse files Browse the repository at this point in the history
… elements value and not the object of the element
  • Loading branch information
olzzon committed Apr 25, 2019
1 parent ea6a32d commit fbe8dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const mapStateToProps = (state, props) => {
faderLevel: state.channels[0].channel[props.channelIndex].faderLevel,
outputLevel: state.channels[0].channel[props.channelIndex].outputLevel,
label: state.channels[0].channel[props.channelIndex].label,
snapOn: state.channels[0].channel[props.channelIndex].snapOn,
snapOn: state.channels[0].channel[props.channelIndex].snapOn.map((item) => {return item}),
mixerProtocol: state.settings[0].mixerProtocol,
showSnaps: state.settings[0].showSnaps
}
Expand Down

0 comments on commit fbe8dcd

Please sign in to comment.