Skip to content

Commit

Permalink
fix: assign channel to fader trown error if fader.assignedChannels wa…
Browse files Browse the repository at this point in the history
…s undefined.
  • Loading branch information
olzzon committed Feb 8, 2024
1 parent d61d2f0 commit 098489c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/ChannelRouteSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 098489c

Please sign in to comment.