Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
illuzn committed Jul 25, 2024
1 parent 409c64f commit af5f394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/panels/lovelace/cards/hui-markdown-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
if (changedProps.has("_config")) {
this._tryConnect();
}
const shouldBeHidden = this._templateResult && this._config.show_empty === false && this._templateResult.result.length === 0;
const shouldBeHidden =
this._templateResult &&
this._config.show_empty === false &&
this._templateResult.result.length === 0;
if (shouldBeHidden !== this.hidden) {
this.style.display = shouldBeHidden ? "none" : "block";
this.toggleAttribute("hidden", shouldBeHidden);
Expand Down

0 comments on commit af5f394

Please sign in to comment.