Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13131

Vanessaeb28a4402291
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index cdf968a502..52c4d6c39e 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -173,6 +173,9 @@ export const setDefRefCount = (data: {
}) => {
getAllEditor().forEach(editor => {
if (data.rootID === data.blockID && editor.protyle.block.rootID === data.rootID) {
+ if (!editor.protyle.title) {
+ return;
+ }
const attrElement = editor.protyle.title.element.querySelector(".protyle-attr");
const countElement = attrElement.querySelector(".protyle-attr--refcount");
if (countElement) {