From a41b9878e87a1c044548aea049c880be3cdda819 Mon Sep 17 00:00:00 2001 From: Olzzon Date: Wed, 27 Nov 2019 21:14:59 +0100 Subject: [PATCH] fix: pass auxIndex to aux level reducer --- src/utils/OscMixerConnection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/OscMixerConnection.ts b/src/utils/OscMixerConnection.ts index 4f8df69f..21f20ee4 100644 --- a/src/utils/OscMixerConnection.ts +++ b/src/utils/OscMixerConnection.ts @@ -156,13 +156,14 @@ export class OscMixerConnection { if (commandPart === '{channel}') { ch = parseFloat(messageArray[index]) } else if (commandPart === '{argument}') { - auxIndex = parseFloat(messageArray[index]) + auxIndex = parseFloat(messageArray[index]) - 1 } }) window.storeRedux.dispatch({ type: SET_AUX_LEVEL, channel: ch - 1, + auxIndex: auxIndex, level: message.args[0] });