Skip to content

Commit 55e2815

Browse files
authored
Fix: removed edges from DataGraph upon deletion (#36)
1 parent fead7ef commit 55e2815

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types/graphs/viewgraph.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ export class ViewGraph {
230230
return;
231231
}
232232

233+
this.datagraph.removeConnection(
234+
edge.connectedNodes.n1,
235+
edge.connectedNodes.n2,
236+
);
233237
// Call Edge's remove method to handle disconnection and cleanup
234238
edge.remove();
235239

0 commit comments

Comments
 (0)