Skip to content

armgit / core

Public Imported from GitHub
0

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

type selectedheaders

Vincentfa70ae08f54a
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index b52f46e21..aa66cd69f 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -533,7 +533,7 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
.then((assetChildren: Asset[]) => {
if (assetChildren && assetChildren.length > 0) {
const columnHeaders = Object.getOwnPropertyNames(assetChildren[0].attributes);
- const selectedHeaders = columnHeaders.map((header) => {
+ const selectedHeaders: AttributesConfig[] = columnHeaders.map((header) => {
return {
name: header,
value: true