100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
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.tsindex 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-modalid="modal-attributes".selectedAttributes="${selectedHeaders}"></or-attributes-modal>+ `;} else {return html`<span>No data found</span>`;}