1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00

Don't hide empty entity-filter card in edit mode (#27119)

This commit is contained in:
karwosts
2025-09-22 21:54:54 -07:00
committed by GitHub
parent 2c602aecee
commit f4e583b302

View File

@@ -143,8 +143,7 @@ export class HuiEntityFilterCard
this._element.preview = this.preview;
this._element.layout = this.layout;
}
if (changedProps.has("_config")) {
if (changedProps.has("_config") || changedProps.has("preview")) {
return true;
}
if (changedProps.has("hass")) {
@@ -186,7 +185,11 @@ export class HuiEntityFilterCard
return true;
});
if (entitiesList.length === 0 && this._config.show_empty === false) {
if (
entitiesList.length === 0 &&
this._config.show_empty === false &&
!this.preview
) {
if (!this.hidden) {
this.style.display = "none";
this.toggleAttribute("hidden", true);