Skip to content
Snippets Groups Projects
Commit 66a042c6 authored by Atte Keinänen's avatar Atte Keinänen Committed by GitHub
Browse files

Merge pull request #4713 from metabase/dont-hide-widget-filter-if-empty-results

Don't hide widget filter if filtered result is empty
parents c4973a59 21c7bb51
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,10 @@ export default class EntityList extends Component {
const section = this.getSection();
const hasEntitiesInPlainState = entityIds.length > 0 || section.section !== "all";
const showActionHeader = (editable && selectedCount > 0);
const showSearchHeader = (entityIds.length > 0 && showSearchWidget);
const showSearchHeader = (hasEntitiesInPlainState && showSearchWidget);
const showEntityFilterWidget = onChangeSection;
return (
<div style={style}>
......@@ -201,7 +203,7 @@ export default class EntityList extends Component {
:
null
}
{ showEntityFilterWidget && entityIds.length > 0 &&
{ showEntityFilterWidget && hasEntitiesInPlainState &&
<EntityFilterWidget
section={section}
onChange={onChangeSection}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment