Skip to content

armgit / core

Public Imported from GitHub
0

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

Hotfix for dashboard ID being specified when duplicating it in the UI. (#1883)

Martin Peeters896d2fc724d9
diff --git a/ui/component/or-dashboard-builder/src/service/dashboard-service.ts b/ui/component/or-dashboard-builder/src/service/dashboard-service.ts
index 2810d7893..2936d1047 100644
--- a/ui/component/or-dashboard-builder/src/service/dashboard-service.ts
+++ b/ui/component/or-dashboard-builder/src/service/dashboard-service.ts
@@ -23,7 +23,7 @@ export class DashboardService {
}
} as Dashboard;
} else {
- dashboard.id = randomId();
+ dashboard.id = undefined;
if(dashboard.template) {
dashboard.template.id = randomId();
dashboard.template.widgets?.forEach(w => w.id = randomId());