An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16047
Vanessaef4deeae5895
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex 6a498c9d0a..4d4f0541d1 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);