Skip to content

Commit

Permalink
fix: do not include empty filter values (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Jun 26, 2024
1 parent 732bd5d commit 92f0c3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const serializeFilterRequestParamsForHub = (
const { value } = filter;
return typeof value === "string" || typeof value === "number"
? value !== null && value !== undefined
: value.list.length > 0;
: value && value.list.length > 0;
})
.sort((a, b) => a.field.localeCompare(b.field))
.map(serializeFilterForHub)
Expand Down

0 comments on commit 92f0c3b

Please sign in to comment.