mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix memory render (#1087)
This commit is contained in:
parent
39ef7e1e5e
commit
42b1920ce0
3 changed files with 4 additions and 6 deletions
2
bun.lock
2
bun.lock
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue