Skip to content

Commit

Permalink
fix: When an channelsetting is on and new protocol are selected that …
Browse files Browse the repository at this point in the history
…haven´t implementee channelsettings, the settings wouldn´t go away after reload.
  • Loading branch information
olzzon committed Jun 27, 2019
1 parent 4082795 commit 82373dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reducers/settingsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const settings = (state = defaultSettingsReducerState, action: any): Arra
return nextState;
case 'UPDATE_SETTINGS':
nextState[0] = action.settings;
nextState[0].showOptions = false;
if (typeof MixerProtocolPresets[nextState[0].mixerProtocol] === 'undefined')
{
nextState[0].mixerProtocol = 'genericMidi';
Expand Down

0 comments on commit 82373dd

Please sign in to comment.