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
This commit is contained in:
Shailesh Parmar 2022-01-18 10:14:46 +05:30 committed by GitHub
parent de3b3e4abc
commit a0eb8b112c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ const Explore: React.FC<ExploreProps> = ({
const getData = () => { const getData = () => {
if (!isMounting.current && previsouIndex === getCurrentIndex(tab)) { if (!isMounting.current && previsouIndex === getCurrentIndex(tab)) {
forceSetAgg.current = false; forceSetAgg.current = !isFilterSelected;
fetchTableData(); fetchTableData();
} }
}; };
@ -479,6 +479,7 @@ const Explore: React.FC<ExploreProps> = ({
useEffect(() => { useEffect(() => {
forceSetAgg.current = true; forceSetAgg.current = true;
if (!isMounting.current) { if (!isMounting.current) {
resetFilters();
fetchTableData(); fetchTableData();
} }
}, [searchText, searchIndex]); }, [searchText, searchIndex]);