Skip to content

Commit

Permalink
Merge pull request #556 from nylqd/patch-1
Browse files Browse the repository at this point in the history
🐛 Bugfix: fix render problem caused by same id between nodes and edges
  • Loading branch information
pomelo-nwu authored Nov 21, 2023
2 parents 4b2e4c9 + 37ac14b commit b05c127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gi-assets-neo4j/src/services/Driver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class Neo4JDriver {
const target = end.low.toString();
const label = type;
edges.push({
id: identity.low.toString(),
id: 'e' + identity.low.toString(),
source,
target,
label,
Expand Down Expand Up @@ -236,7 +236,7 @@ class Neo4JDriver {
const hasRelationship = edges.find(d => d.id === identity.low.toString());
if (!hasRelationship) {
edges.push({
id: identity.low.toString(),
id: 'e' + identity.low.toString(),
source: source.low.toString(),
target: target.low.toString(),
label: type,
Expand Down

0 comments on commit b05c127

Please sign in to comment.