mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix a case where developer-tools/action can get stuck in an error loop (#22334)
This commit is contained in:
parent
f9ff938775
commit
6cfda78aa1
@ -68,6 +68,16 @@ class HaPanelDevAction extends LitElement {
|
||||
|
||||
@query("#yaml-editor") private _yamlEditor?: HaYamlEditor;
|
||||
|
||||
protected willUpdate() {
|
||||
if (
|
||||
!this.hasUpdated &&
|
||||
this._serviceData?.action &&
|
||||
typeof this._serviceData.action !== "string"
|
||||
) {
|
||||
this._serviceData.action = "";
|
||||
}
|
||||
}
|
||||
|
||||
protected firstUpdated(params) {
|
||||
super.firstUpdated(params);
|
||||
this.hass.loadBackendTranslation("services");
|
||||
|
Loading…
x
Reference in New Issue
Block a user