fix(templates): `variables` was `undefined` if none where provided.
Fix #718
This commit is contained in:
parent
529f954cec
commit
fad332b80d
|
@ -171,7 +171,7 @@ class ButtonCard extends LitElement {
|
|||
try {
|
||||
this._evaledVariables = this._config!.variables
|
||||
? this._objectEvalTemplate(this._stateObj, this._config!.variables)
|
||||
: undefined;
|
||||
: {};
|
||||
return this._cardHtml();
|
||||
} catch (e: any) {
|
||||
if (e.stack) console.error(e.stack);
|
||||
|
|
Loading…
Reference in New Issue