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: filter out empty attribute names from config

Vincent6fc62f600ad7
diff --git a/ui/app/manager/src/pages/page-map.ts b/ui/app/manager/src/pages/page-map.ts
index 87897839f..55efbc071 100644
--- a/ui/app/manager/src/pages/page-map.ts
+++ b/ui/app/manager/src/pages/page-map.ts
@@ -188,6 +188,7 @@ export class PageMap extends Page<MapStateKeyed> {
if (this.config && this.config.markers) {
markerLabelAttributes = Object.values(this.config.markers)
+ .filter(assetTypeMarkerConfig => assetTypeMarkerConfig.attributeName)
.map(assetTypeMarkerConfig => assetTypeMarkerConfig.attributeName);
}