Skip to content

Commit

Permalink
fix: Filters dropdown text fix in case of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 committed Jan 22, 2025
1 parent a53b1c1 commit b545dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Stream/components/Querier/FilterQueryBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit b545dd1

Please sign in to comment.