diff --git a/packages/hypergraph-react/src/internal/use-query-public.tsx b/packages/hypergraph-react/src/internal/use-query-public.tsx index ab0dc48b..4a5632bb 100644 --- a/packages/hypergraph-react/src/internal/use-query-public.tsx +++ b/packages/hypergraph-react/src/internal/use-query-public.tsx @@ -205,7 +205,7 @@ const convertRelations = ( const rawEntity: Record = {}; for (const [key, relationId] of Object.entries(mappingEntry?.relations ?? {})) { - const properties = (queryEntity.relations ?? []).filter((a) => a.type.id === relationId); + const properties = (queryEntity.relations ?? []).filter((a) => a.type?.id === relationId); if (properties.length === 0) { rawEntity[key] = [] as unknown[]; continue;