100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
UI update: Added safe guard for error response on console app config
Rich Turnere280bbb98ec9
diff --git a/ui/component/core/src/index.ts b/ui/component/core/src/index.tsindex 29d432d5d..8159397f9 100644--- a/ui/component/core/src/index.ts+++ b/ui/component/core/src/index.ts@@ -915,13 +915,10 @@ export class Manager implements EventProviderFactory {protected async getConsoleAppConfig(): Promise<boolean> {try {const consoleAppConfigResponse = await this.rest.api.ConsoleAppResource.getAppConfig();- if (consoleAppConfigResponse.status === 200) {- this._consoleAppConfig = consoleAppConfigResponse.data;- }+ this._consoleAppConfig = consoleAppConfigResponse.data;return true;} catch (e) {- this._setError(ORError.CONSOLE_ERROR);- return false;+ return true;}}