From 43d15c9884010293b96da5bfde7935bb093c4a7d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 23 Sep 2024 23:10:17 +0800 Subject: [PATCH] :bug: Clicking the document tag in the graph reports an error https://github.com/siyuan-note/siyuan/issues/12556 --- app/src/layout/dock/Graph.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts index 95c1f94b6..43faa20f0 100644 --- a/app/src/layout/dock/Graph.ts +++ b/app/src/layout/dock/Graph.ts @@ -540,6 +540,10 @@ export class Graph extends Model { case "NodeSuperBlock": item.color = {background: rootStyle.getPropertyValue("--b3-graph-super-point").trim()}; break; + case "tag": + case "textmark tag": + item.color = {background: rootStyle.getPropertyValue("--b3-graph-tag-point").trim()}; + break; default: item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()}; break; @@ -658,7 +662,7 @@ export class Graph extends Model { if (!node) { return; } - if (node.type === "textmark tag") { + if (-1 < node.type.indexOf("tag")) { openGlobalSearch(this.app, `#${node.id}#`, !window.siyuan.ctrlIsPressed); return; }