Skip to content

Commit

Permalink
fix(document): make #10295 fix more durable
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jun 4, 2021
1 parent 78aa2a3 commit fd954e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -2928,7 +2928,7 @@ Document.prototype.$__reset = function reset() {
doc.$__reset();
if (doc.$__parent === _this) {
_this.$__.activePaths.init(doc.$basePath);
} else {
} else if (doc.$__parent != null) {
// If map path underneath nested path, may end up with a case where
// map path is modified but parent still needs to be reset. See gh-10295
doc.$__parent.$__reset();
Expand Down

0 comments on commit fd954e1

Please sign in to comment.