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);