Skip to content

Commit

Permalink
fix: GUI crash for reference to fader label, on fader thats not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jan 27, 2020
1 parent 9a24def commit 9bc4df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/ChanStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class ChanStrip extends React.PureComponent<IChanStripProps & IChanStripInjectPr
monitor(channelIndex: number) {
let faderIndex = this.props.channel[channelIndex].assignedFader
if (faderIndex === -1) return null
let monitorName = this.props.fader[faderIndex].label
let monitorName = this.props.fader[faderIndex] ? this.props.fader[faderIndex].label : ''
if (monitorName === '') {
monitorName = 'Fader ' + String(this.props.channel[channelIndex].assignedFader + 1)
}
Expand Down

0 comments on commit 9bc4df7

Please sign in to comment.