Skip to content

Commit

Permalink
feat: multiple mixers - clean up routing options
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Oct 9, 2020
1 parent d62f3ea commit 32a4abb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/components/ChannelRouteSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { IFader } from '../../server/reducers/fadersReducer'
interface IChannelSettingsInjectProps {
label: string
chConnections: IchConnection[]
channel: IChannel[]
fader: IFader[]
}

Expand Down Expand Up @@ -96,7 +95,7 @@ class ChannelRouteSettings extends React.PureComponent<
handle11Routing() {
if (window.confirm('Reassign all Faders 1:1 to Channels????')) {
this.props.fader.forEach((fader: any, index: number) => {
if (this.props.channel.length > index) {
if (this.props.chConnections[0].channel.length > index) {
window.socketIoClient.emit(SOCKET_SET_ASSIGNED_FADER, {
mixerIndex: 0,
channel: index,
Expand Down Expand Up @@ -189,7 +188,6 @@ const mapStateToProps = (
return {
label: state.faders[0].fader[props.faderIndex].label,
chConnections: state.channels[0].chConnection,
channel: state.channels[0].chConnection[0].channel,
fader: state.faders[0].fader,
}
}
Expand Down

0 comments on commit 32a4abb

Please sign in to comment.