Fix erroneous function calls
This commit is contained in:
parent
521e0c4fab
commit
62c685b44d
@ -57,7 +57,7 @@ if (!window.cardTools){
|
||||
};
|
||||
|
||||
const _createError = (error, config) => {
|
||||
return _createCard("hui-error-card", {
|
||||
return _createThing("hui-error-card", {
|
||||
type: "error",
|
||||
error,
|
||||
config,
|
||||
@ -65,7 +65,7 @@ if (!window.cardTools){
|
||||
};
|
||||
|
||||
if(!config || typeof config !== "object" || !config.type)
|
||||
return _createErrorCard(`No ${thing} type configured`, config);
|
||||
return _createError(`No ${thing} type configured`, config);
|
||||
let tag = config.type;
|
||||
if(config.error) {
|
||||
const err = config.error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user