From eb28a44022918d3da2e2fa49e654a7dc2ad3fa80 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 16 Nov 2024 12:06:15 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13131 --- app/src/dialog/processSystem.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index cdf968a50..52c4d6c39 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) {