Skip to content

Commit

Permalink
fix selector
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Dec 2, 2024
1 parent f085b74 commit 249f48e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
});

Expand Down

0 comments on commit 249f48e

Please sign in to comment.