Skip to content

Commit

Permalink
fix: settings - Protocol specific options displayed when protocol is …
Browse files Browse the repository at this point in the history
…changed (e.g. midi ports when a MIDI based protocol is selected)
  • Loading branch information
olzzon committed Aug 17, 2019
1 parent 0a1067b commit 25167d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ class Settings extends React.PureComponent<IAppProps & Store, IState> {
handleProtocolChange = (selectedOption: any) => {
var settingsCopy= Object.assign({}, this.state.settings);
settingsCopy.mixerProtocol = selectedOption.value;
this.setState({selectedProtocol: this.mixerProtocolPresets[settingsCopy.mixerProtocol]})
this.setState(
{settings: settingsCopy}
);
this.setState({selectedProtocol: this.mixerProtocolPresets[this.state.settings.mixerProtocol]})
}

handleNumberOfChannels = (index: number, event: any) => {
Expand Down

0 comments on commit 25167d2

Please sign in to comment.