mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix filter card visibility when show empty is false (#20985)
This commit is contained in:
parent
ab340e13e9
commit
db82b856e0
@ -163,14 +163,12 @@ export class HuiEntityFilterCard
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (
|
if (entitiesList.length === 0 && this._config.show_empty === false) {
|
||||||
entitiesList.length === 0 &&
|
if (!this.hidden) {
|
||||||
this._config.show_empty === false &&
|
this.style.display = "none";
|
||||||
!this.hidden
|
this.toggleAttribute("hidden", true);
|
||||||
) {
|
fireEvent(this, "card-visibility-changed", { value: false });
|
||||||
this.style.display = "none";
|
}
|
||||||
this.toggleAttribute("hidden", true);
|
|
||||||
fireEvent(this, "card-visibility-changed", { value: false });
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user