From 7099d2e379f94446db2066dc2e492835cc12dde5 Mon Sep 17 00:00:00 2001 From: Andrew Rodland Date: Sat, 10 Feb 2024 23:13:53 -0500 Subject: [PATCH] fix loading default config without this change, if the user doesn't have a valid config on disk, they just get a white screen on startup due to `nconf.required` throwing an exception. --- gui/src/store/settingsStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/store/settingsStore.js b/gui/src/store/settingsStore.js index c0c975db..8baa9b2d 100644 --- a/gui/src/store/settingsStore.js +++ b/gui/src/store/settingsStore.js @@ -101,7 +101,7 @@ const defaultConfig = { }, }; -nconf.defaults(defaultConfig.local); +nconf.defaults(defaultConfig); nconf.required(["local:host", "local:port"]); export const settingsStore = reactive(defaultConfig);