mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 03:16:34 +00:00
Fix error handling/flickering in markdown card (#24280)
This commit is contained in:
parent
0256da511d
commit
1363884773
@ -135,7 +135,7 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
|
|||||||
this._tryConnect();
|
this._tryConnect();
|
||||||
}
|
}
|
||||||
const shouldBeHidden =
|
const shouldBeHidden =
|
||||||
this._templateResult &&
|
!!this._templateResult &&
|
||||||
this._config.show_empty === false &&
|
this._config.show_empty === false &&
|
||||||
this._templateResult.result.length === 0;
|
this._templateResult.result.length === 0;
|
||||||
if (shouldBeHidden !== this.hidden) {
|
if (shouldBeHidden !== this.hidden) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user