From 098489cc6de6ed7111f91275f959b40ebe9c55fb Mon Sep 17 00:00:00 2001 From: olzzon Date: Thu, 8 Feb 2024 09:44:14 +0100 Subject: [PATCH] fix: assign channel to fader trown error if fader.assignedChannels was undefined. --- client/src/components/ChannelRouteSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ChannelRouteSettings.tsx b/client/src/components/ChannelRouteSettings.tsx index 3bcb2561..8f210f86 100644 --- a/client/src/components/ChannelRouteSettings.tsx +++ b/client/src/components/ChannelRouteSettings.tsx @@ -45,7 +45,7 @@ class ChannelRouteSettings extends React.PureComponent< // Check if channel already is assigned to another fader and remove that binding prior to bind it to the new fader if (event.target.checked) { this.props.fader.forEach((fader: Fader, index: number) => { - if (fader.assignedChannels.some((assignedChan) => { + if (fader.assignedChannels?.some((assignedChan) => { return assignedChan.mixerIndex === mixerIndex && assignedChan.channelIndex === channelIndex })) { window.socketIoClient.emit(SOCKET_ASSIGN_CH_TO_FADER, {