Fix error-card configuration.
This commit is contained in:
parent
96ff241199
commit
b732307245
File diff suppressed because one or more lines are too long
@ -10,12 +10,12 @@ export const DOMAINS_HIDE_MORE_INFO = [
|
|||||||
"weblink",
|
"weblink",
|
||||||
];
|
];
|
||||||
|
|
||||||
function errorElement(error, config) {
|
function errorElement(error, origConfig) {
|
||||||
const el = document.createElement("hui-error-card");
|
const el = document.createElement("hui-error-card");
|
||||||
el.setConfig({
|
el.setConfig({
|
||||||
type: "error",
|
type: "error",
|
||||||
error,
|
error,
|
||||||
config,
|
origConfig,
|
||||||
});
|
});
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user