Skip to content

armgit / core

Public Imported from GitHub
0

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

UI update: Bug fix for or-map-asset-card

Rich Turnera8b962f51c92
diff --git a/ui/component/or-map/src/or-map-asset-card.ts b/ui/component/or-map/src/or-map-asset-card.ts
index d475239c9..68c050913 100644
--- a/ui/component/or-map/src/or-map-asset-card.ts
+++ b/ui/component/or-map/src/or-map-asset-card.ts
@@ -168,7 +168,7 @@ export class OrMapAssetCard extends subscribe(manager)(LitElement) {
if (descriptors && descriptors.length) {
const label = Util.getAttributeLabel(attr, descriptors[0], this.asset.type, true);
const value = Util.getAttributeValueAsString(attr, descriptors[0], this.asset.type, false, "-");
- const classes = {highlighted: (this.markerconfig![this.asset.type] && attr.name === this.markerconfig![this.asset.type][0].attributeName)};
+ const classes = {highlighted: (this.markerconfig!! && this.markerconfig![this.asset.type] && attr.name === this.markerconfig![this.asset.type][0].attributeName)};
return html`<li class="${classMap(classes)}"><span class="attribute-name">${label}</span><span class="attribute-value">${value}</span></li>`;
}
})}