mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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;
|
||||
});
|
||||
|
||||
if (
|
||||
entitiesList.length === 0 &&
|
||||
this._config.show_empty === false &&
|
||||
!this.hidden
|
||||
) {
|
||||
this.style.display = "none";
|
||||
this.toggleAttribute("hidden", true);
|
||||
fireEvent(this, "card-visibility-changed", { value: false });
|
||||
if (entitiesList.length === 0 && this._config.show_empty === false) {
|
||||
if (!this.hidden) {
|
||||
this.style.display = "none";
|
||||
this.toggleAttribute("hidden", true);
|
||||
fireEvent(this, "card-visibility-changed", { value: false });
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user