From fd7052080110c24faf8ab3e9a4da81673ffb6ba3 Mon Sep 17 00:00:00 2001 From: deaflynx Date: Fri, 1 Aug 2025 11:50:23 +0300 Subject: [PATCH] UI: Fix dashboard duplicate state overwrite when changing state name. --- .../states/manage-dashboard-states-dialog.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.ts index 7dddc18dbd..ac4b895d37 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.ts @@ -265,6 +265,7 @@ export class ManageDashboardStatesDialogComponent if (this.states[newStateId]) { this.stateNames.add(newStateName); this.duplicateState(null, state); + return; } const duplicatedStates = deepClone(originalState); const duplicatedWidgets = deepClone(this.widgets);