1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 18:58:57 +00:00

Clear entityId before duplicate script (#17624)

This commit is contained in:
Simon Lamon
2023-08-21 15:27:54 +02:00
committed by GitHub
parent 014bbf12ce
commit a725b6c9de

View File

@@ -761,6 +761,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
})
: await this.confirmUnsavedChanged();
if (result) {
this._entityId = undefined;
showScriptEditor({
...this._config,
alias: this._readOnly