We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2dab6f commit 7bd287eCopy full SHA for 7bd287e
src/ParseObject.js
@@ -408,14 +408,7 @@ class ParseObject {
408
changes[attr] = new ParseACL(response[attr]);
409
} else if (attr !== 'objectId') {
410
const val = decode(response[attr]);
411
- if (val && typeof val === 'object'
412
- && !(val instanceof Array)
413
- && !(val instanceof ParseObject)
414
- && !(val instanceof ParseFile)
415
- && !(val instanceof ParseRelation)
416
- && !(val instanceof Op)
417
- && !(Object.prototype.toString.call(val) === '[object Date]')) {
418
-
+ if (val && Object.getPrototypeOf(val) === Object.prototype) {
419
// Update the object by merging in updates w/ old object
420
changes[attr] = { ...this.attributes[attr], ...val }
421
} else {
0 commit comments