From 249f48ea7c742cd1e19d1c9a3e12bcb8822091ba Mon Sep 17 00:00:00 2001 From: Benjamin Kane Date: Mon, 2 Dec 2024 16:30:03 -0500 Subject: [PATCH] fix selector --- .../src/components/Filters/NumericFieldFilter/state.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/packages/core/src/components/Filters/NumericFieldFilter/state.ts b/app/packages/core/src/components/Filters/NumericFieldFilter/state.ts index b03e2c3134..6dbaf87e23 100644 --- a/app/packages/core/src/components/Filters/NumericFieldFilter/state.ts +++ b/app/packages/core/src/components/Filters/NumericFieldFilter/state.ts @@ -31,10 +31,11 @@ export const nonfinitesText = selectorFamily({ (params: { path: string; modal: boolean }) => ({ get }) => { const data = get(nonfiniteData({ ...params, extended: false })); - const result = Object.fromEntries( - Object.entries(data).filter(([k, v]) => k !== "none" && Boolean(v)) + const result = Object.entries(data).filter( + ([k, v]) => k !== "none" && Boolean(v) ); - return result.length ? result.join(", ") : null; + + return result.length ? result.map(([key]) => key).join(", ") : null; }, });