Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix undefined asset

Robin Dekkersd79c17ed4a02
diff --git a/ui/component/or-chart/src/index.ts b/ui/component/or-chart/src/index.ts
index 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();
}
}