Clean up comments in renderer.ts

Removed outdated comments regarding edge source/target resolution.
This commit is contained in:
Ishaan Gupta 2026-06-11 20:26:28 +05:30 committed by GitHub
parent cd3541db83
commit 32b619fe1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,9 +244,7 @@ function drawEdges(
continue
}
// Always resolve through nodeMap. d3-force mutates edge.source/target
// from string ids into node object refs at sim init; when useGraphData
// rebuilds nodes those refs go stale and edges lag behind dragged nodes.
const src = nodeMap.get(srcId)
const tgt = nodeMap.get(tgtId)
if (!src || !tgt) continue