UI: Fix dashboard duplicate state overwrite when changing state name.
This commit is contained in:
parent
da946da892
commit
fd70520801
@ -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…
x
Reference in New Issue
Block a user