From 0b2bde1426c262793cc1067ddf7276b1747da023 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 19 Apr 2024 20:36:14 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/11087 --- app/src/layout/dock/Graph.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts index 4cfd3dcb9..ee943f5c9 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;