From c4cb0070230d1dd100ddf4b29ec03082bc98efdc Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Tue, 25 Jun 2024 10:48:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E4=BD=93=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E5=9B=BE=E4=BC=98=E5=8C=96=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= =?UTF-8?q?:=E4=B8=8A=E4=B8=80=E6=AD=A5=E4=B8=8B=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9=EF=BC=88=E6=8B=93=E5=B1=95?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=97=B6=EF=BC=8C=E6=98=BE=E7=A4=BA=E5=B7=B2?= =?UTF-8?q?=E6=8B=93=E5=B1=95=E7=B1=BB=E5=9E=8B=E4=B8=B4=E6=97=B6=E8=8A=82?= =?UTF-8?q?=E7=82=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/entityGraph/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/entityExplorer/entityGraph/node.js b/src/views/entityExplorer/entityGraph/node.js index f56f8f86..76dd991a 100644 --- a/src/views/entityExplorer/entityGraph/node.js +++ b/src/views/entityExplorer/entityGraph/node.js @@ -79,9 +79,9 @@ export default class Node { const neighboringTargetLinks = [] const neighboringSourceLinks = [] const neighboringLinks = links.filter(l => { - if (l.target === this || l.source === this) { - neighboringNodes.push(l.target === this ? l.source : l.target) - if (l.target === this) { + if (l.target.id === this.id || l.source.id === this.id) { + neighboringNodes.push(l.target.id === this.id ? l.source : l.target) + if (l.target.id === this.id) { neighboringSourceNodes.push(l.source) neighboringSourceLinks.push(l) } else {