mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix memory render
This commit is contained in:
parent
464a2b16b1
commit
cd3541db83
1 changed files with 5 additions and 4 deletions
|
|
@ -244,10 +244,11 @@ function drawEdges(
|
|||
continue
|
||||
}
|
||||
|
||||
const src =
|
||||
typeof edge.source === "string" ? nodeMap.get(edge.source) : edge.source
|
||||
const tgt =
|
||||
typeof edge.target === "string" ? nodeMap.get(edge.target) : edge.target
|
||||
// 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
|
||||
|
||||
if (edgeType === "derives") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue