fix memory render (#1087)

This commit is contained in:
Ishaan Gupta 2026-06-14 23:45:53 +05:30 committed by GitHub
parent 39ef7e1e5e
commit 42b1920ce0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View file

@ -298,7 +298,7 @@
},
"packages/memory-graph": {
"name": "@supermemory/memory-graph",
"version": "0.2.2",
"version": "0.2.3",
"dependencies": {
"d3-force": "^3.0.0",
},

View file

@ -1,6 +1,6 @@
{
"name": "@supermemory/memory-graph",
"version": "0.2.2",
"version": "0.2.3",
"description": "Interactive graph visualization component for Supermemory - visualize and explore your memory connections",
"type": "module",
"main": "./src/index.tsx",

View file

@ -244,10 +244,8 @@ 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
const src = nodeMap.get(srcId)
const tgt = nodeMap.get(tgtId)
if (!src || !tgt) continue
if (edgeType === "derives") {