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
Fix undefined asset
Robin Dekkersd79c17ed4a02
diff --git a/ui/component/or-chart/src/index.ts b/ui/component/or-chart/src/index.tsindex f092a13d9..33aa5e4f6 100644--- a/ui/component/or-chart/src/index.ts+++ b/ui/component/or-chart/src/index.ts@@ -771,10 +771,11 @@ export class OrChart extends translate(i18next)(LitElement) {if(attr){this.setAttrColor(attr);this.assetAttributes = [...this.assetAttributes, attr];++ this.assets = [...this.assets, this.activeAsset];+ this.saveSettings();}- this.assets = [...this.assets, this.activeAsset];}- this.saveSettings();}}