mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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;
|
@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) {
|
protected firstUpdated(params) {
|
||||||
super.firstUpdated(params);
|
super.firstUpdated(params);
|
||||||
this.hass.loadBackendTranslation("services");
|
this.hass.loadBackendTranslation("services");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user