Skip to content

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

:bug: Rebuild bottom backlink panels when refreshing documents https://github.com/siyuan-note/siyuan/issues/18367

Danielb490626ed14e
diff --git a/app/src/editor/index.ts b/app/src/editor/index.ts
index a3248627df..d606337b80 100644
--- a/app/src/editor/index.ts
+++ b/app/src/editor/index.ts
@@ -160,12 +160,7 @@ export class Editor extends Model {
}
const blockId = this.getBacklinkBlockId();
const rootId = this.editor.protyle.block.rootID;
- if (this.backlink.blockId !== blockId || this.backlink.rootId !== rootId) {
- this.backlink.switchBlock(blockId, rootId, this.editor.protyle.notebookId);
- return;
- }
- this.backlink.markDirty();
- this.backlink.refreshIfVisible(true);
+ this.backlink.switchBlock(blockId, rootId, this.editor.protyle.notebookId);
}
public destroy() {