Skip to content

Commit

Permalink
fix: update all channels in channelReducers->SET_COMPLETE_CH_STATE
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed May 11, 2020
1 parent 1ea1b01 commit 9b3aea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/reducers/channelsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const channels = (
nextState = defaultChannelsReducerState(action.numberOfTypeChannels)
if (action.allState.channel.length == nextState[0].channel.length) {
action.allState.channel.map((channel: any, index: number) => {
if (index < action.numberOfTypeChannels[0]) {
if (index < nextState[0].channel.length) {
nextState[0].channel[index] = channel
}
})
Expand Down
4 changes: 2 additions & 2 deletions server/utils/mixerConnections/StuderVistaMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ export class StuderVistaMixerConnection {

checkEmberCommand(message: string, protocolMessage: string): boolean {
let messageArray = message.split('31 ')
if (messageArray.length > 1) {
if (messageArray.length > 2) {
let protocolArray = protocolMessage.split(' ')
let isEqual = protocolArray.every(
(value: string, index: number) => {
if (
value !== messageArray[index + 1].split(' ')[1] &&
value !== messageArray[index + 1]?.split(' ')[1] &&
value !== '{channel}' &&
value !== '{ch-type}' &&
value !== '{aux}'
Expand Down

0 comments on commit 9b3aea7

Please sign in to comment.