From 9bb9ce7865ff97356cb8c6e90ee731979d8c54a3 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 13 Feb 2025 09:52:52 -0500 Subject: [PATCH] quick fix --- lib/document.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/document.js b/lib/document.js index cee62ccfe9c..cb4766f02b3 100644 --- a/lib/document.js +++ b/lib/document.js @@ -3540,9 +3540,6 @@ Document.prototype.$__reset = function reset() { */ Document.prototype.$__undoReset = function $__undoReset() { - if (this.$isSubdocument) { - return; - } if (this.$__.backup == null || this.$__.backup.activePaths == null) { return; } @@ -3561,8 +3558,10 @@ Document.prototype.$__undoReset = function $__undoReset() { } } - for (const subdoc of this.$getAllSubdocs()) { - subdoc.$__undoReset(); + if (!this.$isSubdocument) { + for (const subdoc of this.$getAllSubdocs()) { + subdoc.$__undoReset(); + } } };