diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 06fb32119..b67692d58 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -170,9 +170,10 @@ export const setDefRefCount = (data: { "rootRefCount": number, "rootID": string refIDs: string[] + rootRefIDs: string[] }) => { getAllEditor().forEach(editor => { - if (data.rootID === data.blockID && editor.protyle.block.rootID === data.rootID) { + if (editor.protyle.block.rootID === data.rootID) { if (!editor.protyle.title) { return; } @@ -183,13 +184,16 @@ export const setDefRefCount = (data: { countElement.remove(); } else { countElement.textContent = data.rootRefCount.toString(); - countElement.setAttribute("data-id", JSON.stringify(data.refIDs)); + countElement.setAttribute("data-id", JSON.stringify(data.rootRefIDs)); } } else if (data.rootRefCount > 0) { - attrElement.insertAdjacentHTML("beforeend", `