Skip to content

Commit

Permalink
fix: status of monitorrouting should be boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jul 24, 2023
1 parent bff1425 commit 3d5bd24
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/src/components/ChannelMonitorOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ChannelMonitorOptions extends React.PureComponent<
if (
window.confirm(
'This will remove all monitor assignments to Aux :' +
String(this.props.fader[this.faderIndex].monitor)
String(this.props.fader[this.faderIndex].monitor)
)
) {
this.props.channel.forEach((channel: any, index: number) => {
Expand All @@ -81,7 +81,7 @@ class ChannelMonitorOptions extends React.PureComponent<
if (
window.confirm(
'Send all channels to Aux: ' +
String(this.props.fader[this.faderIndex].monitor)
String(this.props.fader[this.faderIndex].monitor)
)
) {
this.props.channel.forEach((channel: any, index: number) => {
Expand Down Expand Up @@ -154,10 +154,11 @@ class ChannelMonitorOptions extends React.PureComponent<
/>
<hr />
{this.props.channel.map((channel: any, index: number) => {
let isSelected: boolean =
this.props.channel[index].auxLevel[
let isSelected: boolean = (
channel.auxLevel[
this.props.fader[this.faderIndex].monitor - 1
]
] >= 0
)
return (
<div
key={index}
Expand Down

0 comments on commit 3d5bd24

Please sign in to comment.