Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/11087

Vanessa0b2bde1426c2
diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts
index 4cfd3dcb97..ee943f5c90 100644
--- a/app/src/layout/dock/Graph.ts
+++ b/app/src/layout/dock/Graph.ts
@@ -465,9 +465,7 @@ export class Graph extends Model {
if (id) {
this.blockId = id;
}
- if (!isCurrentEditor(this.blockId) &&
- this.graphElement.firstElementChild.classList.contains("fn__none") // 引用右键打开关系图
- ) {
+ if (this.blockId && !isCurrentEditor(this.blockId) && this.type === "pin") {
return;
}
this.graphData = response.data;