Skip to content

Commit

Permalink
fix: Only filter out nullish values
Browse files Browse the repository at this point in the history
Closes #294.
  • Loading branch information
franky47 committed Mar 13, 2022
1 parent 874486a commit aa96098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const queryTypes: QueryTypeMap = {
.split(separator)
.map(item => decodeURIComponent(item))
.map(itemSerializers.parse)
.filter(Boolean) as ItemType[]
.filter(value => value !== null && value !== undefined) as ItemType[]
},
serialize: values =>
values
Expand Down

0 comments on commit aa96098

Please sign in to comment.