Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix build

CJ Pais11c2bb1eb8ea
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index 02a8b670..4d203e70 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -335,7 +335,7 @@ export const useSettingsStore = create<SettingsStore>()(
bindings: {
...state.settings.bindings,
[id]: {
- ...state.settings.bindings[id]!,
+ ...state.settings.bindings?.[id]!,
current_binding: binding,
},
},
@@ -366,7 +366,7 @@ export const useSettingsStore = create<SettingsStore>()(
bindings: {
...state.settings.bindings,
[id]: {
- ...state.settings.bindings[id]!,
+ ...state.settings.bindings?.[id]!,
current_binding: originalBinding,
},
},