aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2021-11-05 21:48:13 -0400
committerNick Coutsos <[email protected]>2021-11-05 21:48:13 -0400
commitec7ddd70446f6a4f178c285f6355913b55ca3eda (patch)
tree5b423bafe17f6da0d3827ffe87406aa378a06fe0
parent6c2db43b279b0857d1302d4af8386d98f4b62b1c (diff)
downloadkeymap-editor-ec7ddd70446f6a4f178c285f6355913b55ca3eda.tar.gz
keymap-editor-ec7ddd70446f6a4f178c285f6355913b55ca3eda.zip
Fix default source selection
-rw-r--r--application/components/keyboard-picker.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/components/keyboard-picker.vue b/application/components/keyboard-picker.vue
index a6fd529..12008c2 100644
--- a/application/components/keyboard-picker.vue
+++ b/application/components/keyboard-picker.vue
@@ -35,13 +35,13 @@ export default {
])
const selectedSource = localStorage.getItem('selectedSource')
- const onlySource = sourceChoices.length === 1 ? sourceChoices[0] : null
+ const onlySource = sourceChoices.length === 1 ? sourceChoices[0].id : null
return {
sourceChoices,
source: onlySource || (
sourceChoices.find(source => source.id === selectedSource)
- ? selectedSource
+ ? selectedSource.id
: null
)
}