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