From 16609aa010fd92cdce7aac3fab54f126feae28de Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Tue, 8 Jul 2025 16:35:05 +0300 Subject: [PATCH] fix falsey settings apply --- src/appConfig.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/appConfig.ts b/src/appConfig.ts index 52fba96d..92fde21a 100644 --- a/src/appConfig.ts +++ b/src/appConfig.ts @@ -74,7 +74,7 @@ export const loadAppConfig = (appConfig: AppConfig) => { if (value) { disabledSettings.value.add(key) // since the setting is forced, we need to set it to that value - if (appConfig.defaultSettings?.[key] && !qsOptions[key]) { + if (appConfig.defaultSettings && key in appConfig.defaultSettings && !qsOptions[key]) { options[key] = appConfig.defaultSettings[key] } } else { @@ -82,6 +82,7 @@ export const loadAppConfig = (appConfig: AppConfig) => { } } } + // todo apply defaultSettings to defaults even if not forced in case of remote config if (appConfig.keybindings) { Object.assign(customKeymaps, defaultsDeep(appConfig.keybindings, customKeymaps))