From ef4deeae58950e06106b897df7fe95e0f742bb9e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 10 Oct 2025 10:36:03 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16047 --- app/src/protyle/wysiwyg/transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 6a498c9d0..4d4f0541d 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -1396,7 +1396,7 @@ const processFold = (operation: IOperation, protyle: IProtyle) => { highlightRender(protyle.wysiwyg.element); avRender(protyle.wysiwyg.element, protyle); blockRender(protyle, protyle.wysiwyg.element); - if (operation.context.focusId) { + if (operation.context?.focusId) { const focusElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${operation.context.focusId}"]`); focusBlock(focusElement); scrollCenter(protyle, focusElement, false);