Skip to content

Commit

Permalink
fix(variables): variables was undefined if none where provided.
Browse files Browse the repository at this point in the history
Fix #718
  • Loading branch information
RomRider committed Jul 26, 2023
1 parent 529f954 commit 322792a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 322792a

Please sign in to comment.