diff --git a/main/common/settings.ts b/main/common/settings.ts index c6577520..410da299 100644 --- a/main/common/settings.ts +++ b/main/common/settings.ts @@ -116,8 +116,7 @@ export const settings = new Store({ }, shortcuts: { type: 'object', - // eslint-disable-next-line unicorn/no-array-reduce - properties: Object.keys(shortcuts).reduce((acc, key) => ({...acc, [key]: shortcutSchema}), {}), + properties: Object.fromEntries(Object.keys(shortcuts).map(key => [key, shortcutSchema])), default: {} }, version: {