We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0c9b7e + 5261b5d commit 3b5f589Copy full SHA for 3b5f589
1 file changed
src/datastore/sync_methods/unlinkInverse.js
@@ -17,7 +17,9 @@ function _unlinkInverse(definition, linked) {
17
index = i;
18
}
19
});
20
- item[def.localField].splice(index, 1);
+ if (index !== undefined) {
21
+ item[def.localField].splice(index, 1);
22
+ }
23
} else if (item[def.localField] === linked) {
24
delete item[def.localField];
25
0 commit comments