Skip to content

Commit

Permalink
Fix: SET_OUTPUT_LEVEL didn´t have a return so VU was set.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Apr 19, 2019
1 parent 2a1cf69 commit 0d14869
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/components/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ const mapStateToProps = (state, props) => {
outputLevel: state.channels[0].channel[props.channelIndex].outputLevel,
label: state.channels[0].channel[props.channelIndex].label,
snapOn: state.channels[0].channel[props.channelIndex].snapOn,
channel: state.channels[0].channel[props.channelIndex],
mixerProtocol: state.settings[0].mixerProtocol,
showSnaps: state.settings[0].showSnaps
}
Expand Down
1 change: 1 addition & 0 deletions src/reducers/channelsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const channels = ((state = defaultChannelsReducerState(), action) => {
return nextState;
case 'SET_OUTPUT_LEVEL': //channel: level:
nextState[0].channel[action.channel].outputLevel = action.level;
return nextState;
case 'SET_VU_LEVEL': //channel: level:
nextState[0].vuMeters[action.channel].vuVal = action.level;
return nextState;
Expand Down

0 comments on commit 0d14869

Please sign in to comment.