mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Clear entityId before duplicate script (#17624)
This commit is contained in:
parent
014bbf12ce
commit
a725b6c9de
@ -761,6 +761,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
})
|
})
|
||||||
: await this.confirmUnsavedChanged();
|
: await this.confirmUnsavedChanged();
|
||||||
if (result) {
|
if (result) {
|
||||||
|
this._entityId = undefined;
|
||||||
showScriptEditor({
|
showScriptEditor({
|
||||||
...this._config,
|
...this._config,
|
||||||
alias: this._readOnly
|
alias: this._readOnly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user