Merge pull request #1314 from ParsePlatform/flovilmart.issue1302

Fixes issue #1302
This commit is contained in:
Drew
2016-03-31 19:00:55 -07:00
2 changed files with 78 additions and 2 deletions

View File

@@ -537,7 +537,8 @@ function findPointers(object, path) {
// pointers inflated.
function replacePointers(object, path, replace) {
if (object instanceof Array) {
return object.map((obj) => replacePointers(obj, path, replace));
return object.map((obj) => replacePointers(obj, path, replace))
.filter((obj) => obj != null && obj != undefined);
}
if (typeof object !== 'object') {