mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 21:36:36 +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);
|
||||
} 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