From 6ff0473c4108fae6d99f61d09c5e31cbde809c2b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 19 Sep 2024 22:09:49 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/12512 --- app/src/dialog/processSystem.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index d78a5dad3..8b321718f 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -201,6 +201,11 @@ export const setDefRefCount = (data: { attrElement.innerHTML = `
${data.refCount}
${Constants.ZWSP}`; } } + if (data.refCount === 0) { + item.removeAttribute("refcount") + } else { + item.setAttribute("refcount", data.refCount.toString()) + } }); });