mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 20:56:36 +00:00
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") {
|
if (!editMode || this.lovelace!.mode !== "generated") {
|
||||||
this._updateLovelace({ editMode });
|
this._updateLovelace({
|
||||||
|
editMode,
|
||||||
|
configHistory: [this.lovelace!.config],
|
||||||
|
configHistoryIndex: 0,
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user