From ec15f1176c12c7290ccbc76553eed3c850becedc Mon Sep 17 00:00:00 2001 From: Fabricio Duarte Date: Mon, 20 Feb 2023 09:02:46 -0300 Subject: [PATCH] Fix deck options selector not updating the current entry sometimes (#2387) --- ts/deck-options/ConfigSelector.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/deck-options/ConfigSelector.svelte b/ts/deck-options/ConfigSelector.svelte index aac5927a8..de905ee2b 100644 --- a/ts/deck-options/ConfigSelector.svelte +++ b/ts/deck-options/ConfigSelector.svelte @@ -22,7 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const dispatch = createEventDispatcher(); const dispatchPresetChange = () => dispatch("presetchange"); - let value = $configList.findIndex((entry) => entry.current); + $: value = $configList.findIndex((entry) => entry.current); $: label = configLabel($configList[value]); function configLabel(entry: ConfigListEntry): string {