Skip to content

Commit

Permalink
fix: full ch strip - crash when using mixer protocol without eq.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Nov 2, 2020
1 parent d98f592 commit 2f9518c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions client/components/ChanStripFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ class ChanStripFull extends React.PureComponent<
IChanStripFullProps & IChanStripFullInjectProps & Store
> {
canvas: HTMLCanvasElement | undefined
state = {
dragStartX: 0,
dragStartY: 0,
dragCurrentX: 0,
dragCurrentY: 0,
}

constructor(props: any) {
super(props)
}
Expand Down Expand Up @@ -238,7 +233,7 @@ class ChanStripFull extends React.PureComponent<
String(
window.mixerProtocol.channelTypes[0].fromMixer[
fxParamsList.EqGain01
][0].maxLabel
]?.[0].maxLabel
) + ' dB',
120,
20
Expand All @@ -248,7 +243,7 @@ class ChanStripFull extends React.PureComponent<
String(
window.mixerProtocol.channelTypes[0].fromMixer[
fxParamsList.EqGain01
][0].maxLabel
]?.[0].maxLabel
) + ' dB',
120,
400
Expand Down

0 comments on commit 2f9518c

Please sign in to comment.