From 9499473caa909535defddcb8f2a2f55a7b88963d Mon Sep 17 00:00:00 2001 From: llama <100429699+iamllama@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:32:16 +0800 Subject: [PATCH] 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 --- ts/routes/deck-options/EasyDays.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/routes/deck-options/EasyDays.svelte b/ts/routes/deck-options/EasyDays.svelte index eb64d569f..8678b74dc 100644 --- a/ts/routes/deck-options/EasyDays.svelte +++ b/ts/routes/deck-options/EasyDays.svelte @@ -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)