Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/web/components/memory-graph/memory-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export const MemoryGraph = ({
/>

{!isLoading &&
nodes.filter((n) => n.type === "document").length === 0 &&
!nodes.some((n) => n.type === "document") &&
children}

<div
Expand Down
2 changes: 1 addition & 1 deletion packages/memory-graph/src/components/memory-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ export const MemoryGraph = ({

{/* Show welcome screen when no memories exist */}
{!isLoading &&
(!data || nodes.filter((n) => n.type === "document").length === 0) && (
(!data || !nodes.some((n) => n.type === "document")) && (
<>{children}</>
)}

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/memory-graph/memory-graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export const MemoryGraph = ({

{/* Show welcome screen when no memories exist */}
{!isLoading &&
(!data || nodes.filter((n) => n.type === "document").length === 0) && (
(!data || !nodes.some((n) => n.type === "document")) && (
<>{children}</>
)}

Expand Down