Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI bug fix when manager_config.json not present

Rich Turnerbea4bc65942d
diff --git a/ui/app/manager/src/index.ts b/ui/app/manager/src/index.ts
index d90f6e0f0..f25393082 100644
--- a/ui/app/manager/src/index.ts
+++ b/ui/app/manager/src/index.ts
@@ -137,7 +137,7 @@ const configURL = (CONFIG_URL_PREFIX || "") + "/manager_config.json";
fetch(configURL).then(async (result) => {
if (!result.ok) {
- return undefined;
+ return DefaultAppConfig;
}
return await result.json() as ManagerAppConfig;