From 21c7bb5176d3ad29efcdf70233d091483abf938f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Atte=20Kein=C3=A4nen?= <atte.keinanen@gmail.com>
Date: Fri, 14 Apr 2017 17:28:35 -0700
Subject: [PATCH] Flip the logical condition as requested in review

---
 frontend/src/metabase/questions/containers/EntityList.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/metabase/questions/containers/EntityList.jsx b/frontend/src/metabase/questions/containers/EntityList.jsx
index 4d3bd0f9f5a..8ef765765c9 100644
--- a/frontend/src/metabase/questions/containers/EntityList.jsx
+++ b/frontend/src/metabase/questions/containers/EntityList.jsx
@@ -175,7 +175,7 @@ export default class EntityList extends Component {
 
         const section = this.getSection();
 
-        const hasEntitiesInPlainState = !(section.section === "all" && entityIds.length === 0);
+        const hasEntitiesInPlainState = entityIds.length > 0 || section.section !== "all";
 
         const showActionHeader = (editable && selectedCount > 0);
         const showSearchHeader = (hasEntitiesInPlainState && showSearchWidget);
-- 
GitLab