Skip to content

Commit fad332b

Browse files
committed
fix(templates): variables was undefined if none where provided.
Fix #718
1 parent 529f954 commit fad332b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/button-card.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ButtonCard extends LitElement {
171171
try {
172172
this._evaledVariables = this._config!.variables
173173
? this._objectEvalTemplate(this._stateObj, this._config!.variables)
174-
: undefined;
174+
: {};
175175
return this._cardHtml();
176176
} catch (e: any) {
177177
if (e.stack) console.error(e.stack);

0 commit comments

Comments
 (0)