Fix deck options selector not updating the current entry sometimes (#2387)
This commit is contained in:
parent
24216a07f0
commit
ec15f1176c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user