Skip to content

Commit

Permalink
fix: null filter boolean check fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Nov 27, 2023
1 parent 5a5aec7 commit 44a92f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.ts
Expand Up @@ -643,7 +643,7 @@ export function optionsToQuery(
if (Array.isArray(value[searchKey])) {
throw new Error(`${key}.${searchKey} must not be of type Array`);
}
if (value[searchKey] instanceof Boolean) {
if (typeof value[searchKey] === 'boolean') {
out[`${key}${modifier[searchKey]}`] = '';
} else if (value[searchKey] instanceof Date) {
out[`${key}${modifier[searchKey]}`] = value[searchKey].toISOString();
Expand Down

0 comments on commit 44a92f6

Please sign in to comment.