We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 919269e commit 338aa4bCopy full SHA for 338aa4b
packages/uhk-web/src/app/store/reducers/user-configuration.ts
@@ -401,7 +401,11 @@ export function reducer(
401
402
module = new Module(module);
403
const selectedColor = state.backlightingColorPalette[state.selectedBacklightingColorIndex];
404
- const keyAction = KeyActionHelper.fromKeyAction(module.keyActions[payload.key]);
+ let keyAction = KeyActionHelper.fromKeyAction(module.keyActions[payload.key]);
405
+ if (!keyAction) {
406
+ keyAction = new NoneAction();
407
+ }
408
+
409
keyAction.b = selectedColor.b;
410
keyAction.g = selectedColor.g;
411
keyAction.r = selectedColor.r;
0 commit comments