Browse Source

UI: Fix dashboard duplicate state overwrite when changing state name.

pull/13809/head
deaflynx 1 year ago
parent
commit
fd70520801
  1. 1
      ui-ngx/src/app/modules/home/components/dashboard-page/states/manage-dashboard-states-dialog.component.ts

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

Loading…
Cancel
Save