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 {