Fix error handling/flickering in markdown card (#24280)

This commit is contained in:
karwosts 2025-02-17 23:16:10 -08:00 committed by GitHub
parent 0256da511d
commit 1363884773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
this._tryConnect();
}
const shouldBeHidden =
this._templateResult &&
!!this._templateResult &&
this._config.show_empty === false &&
this._templateResult.result.length === 0;
if (shouldBeHidden !== this.hidden) {