diff --git a/packages/uhk-web/src/app/store/reducers/user-configuration.ts b/packages/uhk-web/src/app/store/reducers/user-configuration.ts index 4171be58..f341dc03 100644 --- a/packages/uhk-web/src/app/store/reducers/user-configuration.ts +++ b/packages/uhk-web/src/app/store/reducers/user-configuration.ts @@ -153,11 +153,8 @@ export function reducer(state = initialState, action: Action & { payload?: any } } if (keyActionRemap.remapOnAllKeymap || keymap.abbreviation === newKeymap.abbreviation) { - keymap = new Keymap(keymap); - keymap.layers = keymap.layers.map((layer, index) => { if (keyActionRemap.remapOnAllLayer || index === layerIndex || isSwitchLayerAction) { - layer = new Layer(layer); const clonedAction = KeyActionHelper.createKeyAction(newKeyAction); // If the key action is a SwitchLayerAction then set the same SwitchLayerAction