Skip to content

Commit

Permalink
fix(document): clear out priorDoc after overwriting single nested s…
Browse files Browse the repository at this point in the history
…ubdoc so changes after overwrite get persisted correctly

Fix #9208
  • Loading branch information
vkarpov15 committed Jul 11, 2020
1 parent bd0d7b9 commit 35869a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/types/subdocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function Subdocument(value, fields, parent, skipId, options) {
}
}
}

delete options.priorDoc;
}
}

Expand Down

0 comments on commit 35869a3

Please sign in to comment.