Skip to content

Commit

Permalink
fix: clear old assignment prior to recalculate them
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jul 25, 2023
1 parent db40d02 commit ca5373e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/MainThreadHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export class MainThreadHandlers {
}

reIndexAssignedChannelsRelation() {
state.channels[0].chMixerConnection.forEach((mixer: any) => {
mixer.channel.forEach((channel: IChannel, channelIndex: number) => {
channel.assignedFader = -1
})
})
state.faders[0].fader.forEach((fader, faderIndex) => {
fader.assignedChannels?.forEach((channel: IChannelReference) => {
store.dispatch(
Expand Down

0 comments on commit ca5373e

Please sign in to comment.