From b545dd165416c00281fcb8eb720b98c1a65aa129 Mon Sep 17 00:00:00 2001 From: Praveen K B Date: Wed, 22 Jan 2025 16:06:35 +0530 Subject: [PATCH] fix: Filters dropdown text fix in case of undefined --- src/pages/Stream/components/Querier/FilterQueryBuilder.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Stream/components/Querier/FilterQueryBuilder.tsx b/src/pages/Stream/components/Querier/FilterQueryBuilder.tsx index ba918e08..a55dbf5e 100644 --- a/src/pages/Stream/components/Querier/FilterQueryBuilder.tsx +++ b/src/pages/Stream/components/Querier/FilterQueryBuilder.tsx @@ -69,7 +69,7 @@ const RuleView = (props: RuleViewType) => { const getUniqueColValues = useMemo(() => { if (!rule.field) return []; return Array.from( - new Set(pageData.filter((item) => item[rule.field] !== null).map((item) => String(item[rule.field]))), + new Set(pageData.filter((item) => item[rule.field] != null).map((item) => String(item[rule.field]))), ); }, [pageData, rule.field]);