Skip to content

Commit 1525b9f

Browse files
authored
Merge pull request #337 from heyman/fix-settings-issue
Fix issue when changing settings with an existing settings file that lacks the keyBindings key
2 parents 748f4d3 + c719f26 commit 1525b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/settings/Settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{ name: "Emacs", value: "emacs" },
3434
],
3535
keymap: this.initialSettings.keymap,
36-
keyBindings: this.initialSettings.keyBindings,
36+
keyBindings: this.initialSettings.keyBindings || [],
3737
metaKey: this.initialSettings.emacsMetaKey,
3838
isMac: window.heynote.platform.isMac,
3939
showLineNumberGutter: this.initialSettings.showLineNumberGutter,

0 commit comments

Comments
 (0)