An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/6540
Vanessada7e8ad2b6fa
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex c97b471d6b..8d92a3d20c 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -338,7 +338,7 @@ export class Toolbar {const types = item.getAttribute("data-type").split(" ");if (type === "clear") {for (let i = 0; i < types.length; i++) {- if (textObj.type === "text") {+ if (textObj && textObj.type === "text") {if ("text" === types[i]) {types.splice(i, 1);i--;