diff --git a/views/graph-view/src/components/CommunityGraph.tsx b/views/graph-view/src/components/CommunityGraph.tsx index 08a1c0885..45a1de83e 100644 --- a/views/graph-view/src/components/CommunityGraph.tsx +++ b/views/graph-view/src/components/CommunityGraph.tsx @@ -16,6 +16,10 @@ function findNodes(links, source) { if (alreadyIn) return acc; + if (hasSource && link.data.source === link.data.target) { + return [...acc, link]; + } + if (hasSource) { const newLinks = findNodes(links, link.data.target); return [...acc, ...newLinks, link];