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: minor bug fix

Rich Turnerd15633040f04
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index 694123bab..16c412b0b 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -368,7 +368,7 @@ export function getPanelContent(panelName: string, asset: Asset, attributes: { [
const historyAttrs = Object.values(attributes).filter((attr) =>
(!includedAttributes || includedAttributes.indexOf(attr.name!) >= 0)
&& (!excludedAttributes || excludedAttributes.indexOf(attr.name!) < 0)
- && !!Util.getMetaValue(WellknownMetaItems.STOREDATAPOINTS, attr));
+ && (!attr.meta || !attr.hasOwnProperty(WellknownMetaItems.STOREDATAPOINTS) || !!Util.getMetaValue(WellknownMetaItems.STOREDATAPOINTS, attr)));
if (historyAttrs.length === 0) {
return undefined;