Skip to content

Commit

Permalink
Fixed: logic for array handling in not operation in order category (#358
Browse files Browse the repository at this point in the history
)
  • Loading branch information
amansinghbais committed Jan 22, 2024
1 parent c874095 commit a9d5da5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const handleParameterMatching = (orderVal: any, parameterVal: any, operation?: s
}
return false;
}
if(Array.isArray(parameterVal)) return !parameterVal.some((param: any) => param === orderVal)
return orderVal !== parameterVal
} else if (!operation) {
return orderVal === parameterVal
Expand Down

0 comments on commit a9d5da5

Please sign in to comment.