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: wrong event type in page export when adding attrs

Vincent273811c08582
diff --git a/ui/app/manager/src/pages/page-export.ts b/ui/app/manager/src/pages/page-export.ts
index 46bda0dfb..ca9ac763e 100644
--- a/ui/app/manager/src/pages/page-export.ts
+++ b/ui/app/manager/src/pages/page-export.ts
@@ -358,8 +358,8 @@ class PageExport<S extends AppStateKeyed> extends Page<S> {
dialog.isOpen = true;
dialog.showOnlyDatapointAttrs = true;
dialog.selectedAttributes = this.config.selectedAttributes;
- dialog.addEventListener(OrAddAttributeRefsEvent.NAME, async (ev: OrAttributeRefsAddRequestEvent) => {
- const selectedAttributes = ev.detail.detail.selectedAttributes;
+ dialog.addEventListener(OrAddAttributeRefsEvent.NAME, async (ev: OrAddAttributeRefsEvent) => {
+ const selectedAttributes = ev.detail.selectedAttributes;
await this.renderTable(selectedAttributes);
this.config = {
realm: this.realm,