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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user