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/14807
Vanessa51725d71cb62
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 57b9bacce0..e6d3a52e59 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -437,7 +437,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang// https://github.com/siyuan-note/siyuan/issues/14807if (previousLastEditElement) {let previousLastChild = previousLastEditElement.lastChild;- if (previousLastChild.nodeType === 3) {+ if (previousLastChild && previousLastChild.nodeType === 3) {if (!previousLastChild.textContent) {previousLastChild = hasPreviousSibling(previousLastChild) as ChildNode;}