Skip to content

Commit

Permalink
Fix in/not_in filtering #670.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBurgess committed Jan 14, 2025
1 parent e0ed8f3 commit 85fd333
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,12 @@ export const applyFilter = (
case "in":
return (
Array.isArray(filter.value) &&
filter.value.some((v) => isEqual(value, filter.value, isJson))
filter.value.some((v) => isEqual(value, v, isJson))
);
case "not_in":
return (
Array.isArray(filter.value) &&
!filter.value.some((v) => isEqual(value, filter.value, isJson))
!filter.value.some((v) => isEqual(value, v, isJson))
);
default:
// If an unknown operator is provided, return false
Expand Down

0 comments on commit 85fd333

Please sign in to comment.