Skip to content

Commit

Permalink
fix: numberOfChannels pr. type instead of totalNumberOfChannels
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 28, 2019
1 parent 9552320 commit 139b4c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ class App extends React.Component<IAppProps> {
(window as any).automationConnection = new AutomationConnection();
(window as any).huiRemoteConnection = new HuiMidiRemoteConnection();
this.snapShopStoreTimer();
let totalNumberOfChannels = 0;
let selectedProtocol = MixerProtocolPresets[this.props.store.settings[0].mixerProtocol];
let numberOfChannels: Array<number> = [];
selectedProtocol.channelTypes.forEach((item, index) => {
totalNumberOfChannels =+ this.props.store.settings[0].numberOfChannelsInType[index];
numberOfChannels.push(this.props.store.settings[0].numberOfChannelsInType[index]);
});
loadSnapshotState(this.props.store.channels[0], this.props.store.settings[0].numberOfChannelsInType);
loadSnapshotState(this.props.store.channels[0], numberOfChannels);
}

public shouldComponentUpdate(nextProps: IAppProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/constants/mixerProtocols/reaperMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const ReaperMaster: IMixerProtocol = {
},
{
channelTypeName: 'MASTER',
channelTypeColor: '#2f2f2f',
channelTypeColor: '#0f0f3f',
fromMixer: {
CHANNEL_FADER_LEVEL: ['none'],
CHANNEL_OUT_GAIN: ['/master/volume'],
Expand Down

0 comments on commit 139b4c1

Please sign in to comment.