Merge pull request #777 from ParsePlatform/flovilmart.removeKeysWhenIncludeIsMissing

Fixes mismatching behavior in including keys
This commit is contained in:
Florent Vilmart
2016-03-02 22:16:12 -05:00
2 changed files with 52 additions and 2 deletions

View File

@@ -509,7 +509,7 @@ function replacePointers(object, path, replace) {
}
if (path.length == 0) {
if (object.__type == 'Pointer' && replace[object.objectId]) {
if (object.__type == 'Pointer') {
return replace[object.objectId];
}
return object;