diff --git a/shared/src/store/reducers/user-configuration.ts b/shared/src/store/reducers/user-configuration.ts index ce8de5c8..28ce6d18 100644 --- a/shared/src/store/reducers/user-configuration.ts +++ b/shared/src/store/reducers/user-configuration.ts @@ -87,7 +87,9 @@ export default function (state = initialState, action: Action): UserConfiguratio // If deleted one is default set default keymap to the first on the list of keymaps if (isDefault && filtered.length > 0) { - filtered[0].isDefault = true; + filtered[0] = Object.assign(new Keymap(), filtered[0], { + isDefault: true + }); } // Check for the deleted keymap in other keymaps