From a9e3232b6a3fdeed9a3729aa7b09a1628931010d Mon Sep 17 00:00:00 2001 From: Olzzon Date: Thu, 19 Dec 2019 16:17:53 +0100 Subject: [PATCH] fix: assign aux to fader use auxIndex instead of channel --- server/MainThreadHandler.ts | 2 +- src/components/ChannelMonitorOptions.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/MainThreadHandler.ts b/server/MainThreadHandler.ts index b5363ff8..b807459f 100644 --- a/server/MainThreadHandler.ts +++ b/server/MainThreadHandler.ts @@ -152,7 +152,7 @@ export class MainThreadHandlers { global.storeRedux.dispatch({ type: SET_FADER_MONITOR, channel: payload.faderIndex, - auxIndex: payload.value + auxIndex: payload.auxIndex }); global.socketServer.emit('set-store', global.storeRedux.getState()) }) diff --git a/src/components/ChannelMonitorOptions.tsx b/src/components/ChannelMonitorOptions.tsx index d3e4102a..333c4054 100644 --- a/src/components/ChannelMonitorOptions.tsx +++ b/src/components/ChannelMonitorOptions.tsx @@ -6,7 +6,6 @@ import '../assets/css/ChannelMonitorOptions.css'; import { Store } from 'redux'; import { connect } from 'react-redux'; import { TOGGLE_SHOW_MONITOR_OPTIONS } from '../../server/reducers/settingsActions' -import { SET_FADER_MONITOR } from '../../server/reducers/faderActions'; import { ISettings } from '../../server/reducers/settingsReducer'; import { SOCKET_SET_AUX_LEVEL, SOCKET_SET_FADER_MONITOR } from '../../server/constants/SOCKET_IO_DISPATCHERS';