Skip to content

armgit / core

Public Imported from GitHub
0

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

passing props in a better way

Vincent3ce7b275ac28
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index f8cf3d76d..a26330a86 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -545,12 +545,14 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
});
});
- return html`<or-table
- headers='${JSON.stringify(headers)}'
- rows='${JSON.stringify(rows)}'></or-table>`;
+ return html`
+ <or-table
+ .headers='${columnHeaders}'
+ .rows='${rows}'></or-table>
<or-attributes-modal
id="modal-attributes"
.selectedAttributes="${selectedHeaders}"></or-attributes-modal>
+ `;
} else {
return html`<span>No data found</span>`;
}