fix: Live query throws error when constraint notEqualTo is set to null (#8835)

This commit is contained in:
Rahul Lanjewar
2024-06-12 01:01:10 +05:30
committed by GitHub
parent 716925ec53
commit 11d3e484df
2 changed files with 30 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ function matchesKeyConstraints(object, key, constraints) {
// More complex cases
for (var condition in constraints) {
compareTo = constraints[condition];
if (compareTo.__type) {
if (compareTo?.__type) {
compareTo = Parse._decode(key, compareTo);
}
switch (condition) {