mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix deck options selector not updating the current entry sometimes (#2387)
This commit is contained in:
parent
24216a07f0
commit
ec15f1176c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
const dispatchPresetChange = () => dispatch("presetchange");
|
const dispatchPresetChange = () => dispatch("presetchange");
|
||||||
|
|
||||||
let value = $configList.findIndex((entry) => entry.current);
|
$: value = $configList.findIndex((entry) => entry.current);
|
||||||
$: label = configLabel($configList[value]);
|
$: label = configLabel($configList[value]);
|
||||||
|
|
||||||
function configLabel(entry: ConfigListEntry): string {
|
function configLabel(entry: ConfigListEntry): string {
|
||||||
|
|
Loading…
Reference in a new issue