Skip to content

Commit

Permalink
fix: mixer online forced rerendering. Mixer Online i still only statu…
Browse files Browse the repository at this point in the history
…s for first mixer. (ToDO: support all mixers in GUI)
  • Loading branch information
olzzon authored and olzzon committed Oct 10, 2020
1 parent 692cb4b commit 622cc2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/components/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
nextProps.settings.showChanStrip ||
this.props.settings.showMonitorOptions !==
nextProps.settings.showMonitorOptions ||
this.props.settings.mixerOnline !==
nextProps.settings.mixerOnline ||
this.props.settings.mixers[0].mixerOnline !==
nextProps.settings.mixers[0].mixerOnline ||
this.props.faders.length !== nextProps.faders.length ||
this.props.settings.currentPage !==
nextProps.settings.currentPage ||
Expand Down Expand Up @@ -223,12 +223,12 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
<br />
<div className="channels-mix-body">
<div className="top">
{this.props.settings.mixerOnline ? (
{this.props.settings.mixers[0].mixerOnline ? (
<button
className={ClassNames(
'button half channels-show-mixer-online',
{
connected: this.props.settings
connected: this.props.settings.mixers[0]
.mixerOnline,
}
)}
Expand All @@ -243,7 +243,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
className={ClassNames(
'button half channels-show-mixer-online',
{
connected: this.props.settings
connected: this.props.settings.mixers[0]
.mixerOnline,
}
)}
Expand Down

0 comments on commit 622cc2e

Please sign in to comment.