From d0c523a655d508dc8880c4043d1120c37dc8c441 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Tue, 9 Nov 2021 21:53:54 +0530 Subject: [PATCH] fix: filter goes blank on click of any filter value (#1118) --- .../resources/ui/src/components/Explore/Explore.component.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog-rest-service/src/main/resources/ui/src/components/Explore/Explore.component.tsx b/catalog-rest-service/src/main/resources/ui/src/components/Explore/Explore.component.tsx index be9fde8fd0f..01d8583126d 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/Explore/Explore.component.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/Explore/Explore.component.tsx @@ -16,7 +16,7 @@ */ import classNames from 'classnames'; -import { cloneDeep } from 'lodash'; +import { cloneDeep, isUndefined } from 'lodash'; import { AggregationType, FilterObject, @@ -456,7 +456,7 @@ const Explore: React.FC = ({ useEffect(() => { if (!isMounting.current && previsouIndex === getCurrentIndex(tab)) { - forceSetAgg.current = Boolean(searchIndex); + forceSetAgg.current = isUndefined(tab); fetchTableData(); } }, [currentPage, filters, sortField, sortOrder]);