Skip to content

Commit 16609aa

Browse files
committed
fix falsey settings apply
1 parent 09b0e2e commit 16609aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/appConfig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,15 @@ export const loadAppConfig = (appConfig: AppConfig) => {
7474
if (value) {
7575
disabledSettings.value.add(key)
7676
// since the setting is forced, we need to set it to that value
77-
if (appConfig.defaultSettings?.[key] && !qsOptions[key]) {
77+
if (appConfig.defaultSettings && key in appConfig.defaultSettings && !qsOptions[key]) {
7878
options[key] = appConfig.defaultSettings[key]
7979
}
8080
} else {
8181
disabledSettings.value.delete(key)
8282
}
8383
}
8484
}
85+
// todo apply defaultSettings to defaults even if not forced in case of remote config
8586

8687
if (appConfig.keybindings) {
8788
Object.assign(customKeymaps, defaultsDeep(appConfig.keybindings, customKeymaps))

0 commit comments

Comments
 (0)