Skip to content

Commit 9bb9ce7

Browse files
committed
quick fix
1 parent 29a02a4 commit 9bb9ce7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/document.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3540,9 +3540,6 @@ Document.prototype.$__reset = function reset() {
35403540
*/
35413541

35423542
Document.prototype.$__undoReset = function $__undoReset() {
3543-
if (this.$isSubdocument) {
3544-
return;
3545-
}
35463543
if (this.$__.backup == null || this.$__.backup.activePaths == null) {
35473544
return;
35483545
}
@@ -3561,8 +3558,10 @@ Document.prototype.$__undoReset = function $__undoReset() {
35613558
}
35623559
}
35633560

3564-
for (const subdoc of this.$getAllSubdocs()) {
3565-
subdoc.$__undoReset();
3561+
if (!this.$isSubdocument) {
3562+
for (const subdoc of this.$getAllSubdocs()) {
3563+
subdoc.$__undoReset();
3564+
}
35663565
}
35673566
};
35683567

0 commit comments

Comments
 (0)