Reset history when changing edit mode
This commit is contained in:
parent
497484d419
commit
f3f2059634
|
@ -345,7 +345,11 @@ export class LovelacePanel extends LitElement {
|
|||
}
|
||||
|
||||
if (!editMode || this.lovelace!.mode !== "generated") {
|
||||
this._updateLovelace({ editMode });
|
||||
this._updateLovelace({
|
||||
editMode,
|
||||
configHistory: [this.lovelace!.config],
|
||||
configHistoryIndex: 0,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue