Skip to content

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

:art: 推送

Vanessa5b413d6fb4f6
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index 72f025c160..b341822534 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -179,14 +179,14 @@ export const setDefRefCount = (data: {
const attrElement = editor.protyle.title.element.querySelector(".protyle-attr");
const countElement = attrElement.querySelector(".protyle-attr--refcount");
if (countElement) {
- if (data.refCount === 0) {
+ if (data.rootRefCount === 0) {
countElement.remove();
} else {
- countElement.textContent = data.refCount.toString();
+ countElement.textContent = data.rootRefCount.toString();
countElement.setAttribute("data-id", JSON.stringify(data.refIDs));
}
- } else if (data.refCount > 0) {
- attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${JSON.stringify(data.refIDs)}" style="">${data.refCount}</div>`);
+ } else if (data.rootRefCount > 0) {
+ attrElement.insertAdjacentHTML("beforeend", `<div class="protyle-attr--refcount popover__block" data-defids="[&quot;${data.blockID}&quot;]" data-id="${JSON.stringify(data.refIDs)}" style="">${data.rootRefCount}</div>`);
}
return;
}