Skip to content

armgit / core

Public Imported from GitHub
0

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

app wouldn't compile without this

Vincent583f1fa2bfa5
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index 9e3c459df..f84d1d867 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -624,7 +624,7 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
attributeTable.hidden = false;
attributeTable.headers = [...selectedAttributes].sort();
attributeTable.rows = childAssets.map((asset) => {
- return attributeTable.headers.map((attributeName) => {
+ return attributeTable.headers!.map((attributeName) => {
return asset.attributes![attributeName] ? asset.attributes![attributeName].value! as string : "";
});
});