mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
Upgrade lazy error card (#5955)
This commit is contained in:
parent
5cc4e2bb16
commit
e35bd30ed3
@ -52,9 +52,10 @@ export const createErrorCardElement = (config: ErrorCardConfig) => {
|
|||||||
el.setConfig(config);
|
el.setConfig(config);
|
||||||
} else {
|
} else {
|
||||||
import("../cards/hui-error-card");
|
import("../cards/hui-error-card");
|
||||||
customElements
|
customElements.whenDefined("hui-error-card").then(() => {
|
||||||
.whenDefined("hui-error-card")
|
customElements.upgrade(el);
|
||||||
.then(() => el.setConfig(config));
|
el.setConfig(config);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return el;
|
return el;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user