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 29a02a4 commit 9bb9ce7Copy full SHA for 9bb9ce7
lib/document.js
@@ -3540,9 +3540,6 @@ Document.prototype.$__reset = function reset() {
3540
*/
3541
3542
Document.prototype.$__undoReset = function $__undoReset() {
3543
- if (this.$isSubdocument) {
3544
- return;
3545
- }
3546
if (this.$__.backup == null || this.$__.backup.activePaths == null) {
3547
return;
3548
}
@@ -3561,8 +3558,10 @@ Document.prototype.$__undoReset = function $__undoReset() {
3561
3558
3562
3559
3563
3560
3564
- for (const subdoc of this.$getAllSubdocs()) {
3565
- subdoc.$__undoReset();
+ if (!this.$isSubdocument) {
+ for (const subdoc of this.$getAllSubdocs()) {
+ subdoc.$__undoReset();
+ }
3566
3567
};
3568
0 commit comments