From a0eb8b112cba1856d4ae3e890d226bbf8b5fca0f Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Tue, 18 Jan 2022 10:14:46 +0530 Subject: [PATCH] Fix: issue-2179 Left panel disappears after clicking 'Clear all' button (#2249) * Fix: issue-2179 Left panel disappears after clicking 'Clear all' button * fixed flikiness in side penal --- .../resources/ui/src/components/Explore/Explore.component.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Explore/Explore.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Explore/Explore.component.tsx index 66baf62b57b..4527c492abb 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Explore/Explore.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Explore/Explore.component.tsx @@ -443,7 +443,7 @@ const Explore: React.FC = ({ const getData = () => { if (!isMounting.current && previsouIndex === getCurrentIndex(tab)) { - forceSetAgg.current = false; + forceSetAgg.current = !isFilterSelected; fetchTableData(); } }; @@ -479,6 +479,7 @@ const Explore: React.FC = ({ useEffect(() => { forceSetAgg.current = true; if (!isMounting.current) { + resetFilters(); fetchTableData(); } }, [searchText, searchIndex]);