mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-12 19:30:52 +00:00
Fix ne predicate (#3737)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
5f20225832
commit
d945b6afab
@ -102,7 +102,7 @@ const predicates: Record<string, PredicateFactory> = {
|
||||
},
|
||||
$ne: (o, propertyKey) => {
|
||||
// eslint-disable-next-line eqeqeq
|
||||
return (docs) => execPredicate(docs, propertyKey, (value) => !deepEqual(o, value))
|
||||
return (docs) => execPredicate(docs, propertyKey, (value) => (o != null ? !deepEqual(o, value) : value != null))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user