Skip to content

Commit

Permalink
Fix #1452 by not applying pending updates a second time in ParseObjec…
Browse files Browse the repository at this point in the history
…t.toJSON()
  • Loading branch information
mstniy committed Feb 16, 2022
1 parent ce41389 commit ec75ddb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ParseObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,6 @@ class ParseObject {
json[attr] = encode(attrs[attr], false, false, seen, offline);
}
}
const pending = this._getPendingOps();
for (const attr in pending[0]) {
json[attr] = pending[0][attr].toJSON(offline);
}

if (this.id) {
json.objectId = this.id;
Expand Down

0 comments on commit ec75ddb

Please sign in to comment.