Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/memory-graph/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 2 additions & 4 deletions packages/memory-graph/src/canvas/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
Loading