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 95f735d commit b605273Copy full SHA for b605273
apps/web/src/routes/(app)/settings/shortcuts.tsx
@@ -23,7 +23,10 @@ export default () => {
23
const settings = useSettings();
24
25
const updateShortcut = (key: ShortcutKey, value: string[]) => {
26
- if (settings.store.shortcuts?.[key] !== value) {
+ if (!settings.store.shortcuts) {
27
+ settings.set("shortcuts", {});
28
+ }
29
+ if (settings.store.shortcuts![key] !== value) {
30
settings.set("shortcuts", key, value);
31
}
32
};
0 commit comments