mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix EasyDays not applying defaults correctly in deck options (#3691)
* fix EasyDays not applying defaults correctly * remove the svelte-ignore that's no longer needed
This commit is contained in:
parent
16514727ff
commit
9499473caa
1 changed files with 1 additions and 2 deletions
|
@ -16,9 +16,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
const config = state.currentConfig;
|
||||
const defaults = state.defaults;
|
||||
|
||||
// svelte-ignore reactive_declaration_non_reactive_property
|
||||
$: if ($config.easyDaysPercentages.length !== 7) {
|
||||
$config.easyDaysPercentages = defaults.easyDaysPercentages;
|
||||
$config.easyDaysPercentages = defaults.easyDaysPercentages.slice();
|
||||
}
|
||||
|
||||
$: noNormalDay = $config.easyDaysPercentages.some((p) => p === 1.0)
|
||||
|
|
Loading…
Reference in a new issue