Skip to content

armgit / core

Public Imported from GitHub
0

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

commented out build breaking lines

Michal Rutka79a2d6f2919e
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index c5cfcd973..a8983f1fd 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -449,7 +449,7 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
assetAttributes.length = 1;
}
const assetList:Asset[] = [];
- assetAttributes?.forEach(attr => assetList.push(asset));
+// assetAttributes?.forEach(attr => assetList.push(asset));
content = html`
<or-chart id="chart" .config="${viewerConfig.chartConfig}" .activeAsset="${asset}" .assets="${assetList ? assetList : [asset]}" .assetAttributes="${assetAttributes}"></or-chart>
`;
diff --git a/ui/component/or-chart/src/index.ts b/ui/component/or-chart/src/index.ts
index fefd1d24f..482454a40 100644
--- a/ui/component/or-chart/src/index.ts
+++ b/ui/component/or-chart/src/index.ts
@@ -399,7 +399,7 @@ export class OrChart extends translate(i18next)(LitElement) {
this._dialog = new MDCDialog(this._dialogElem);
this.assetAttributes.map((attr, index) => {
- attr.meta?.push({name: "color", value: this.colors[index]})
+ // attr.meta?.push({name: "color", value: this.colors[index]})
this.usedColors = [...this.usedColors, this.colors[index]];
});
}
@@ -690,7 +690,7 @@ export class OrChart extends translate(i18next)(LitElement) {
if(attr){
const color = this.colors.filter(color => this.usedColors.indexOf( color ) < 0)[0]
- attr.meta?.push({name: "color", value: color})
+// attr.meta?.push({name: "color", value: color})
this.usedColors = [...this.usedColors, color];
this.assets = [...this.assets, this.activeAsset];
this.assetAttributes = [...this.assetAttributes, attr];