Fix/set default easyDaysPercentages when switch preset (#3526)

This commit is contained in:
Jarrett Ye 2024-10-26 17:38:37 +08:00 committed by GitHub
parent 9a44881121
commit 1aa734ad28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const config = state.currentConfig;
const defaults = state.defaults;
if ($config.easyDaysPercentages.length !== 7) {
$: if ($config.easyDaysPercentages.length !== 7) {
$config.easyDaysPercentages = defaults.easyDaysPercentages;
}