From ec7ddd70446f6a4f178c285f6355913b55ca3eda Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Fri, 5 Nov 2021 21:48:13 -0400 Subject: Fix default source selection --- application/components/keyboard-picker.vue | 4 ++-- 1 file 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 ) } -- cgit v1.2.3