We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d23b41 commit e8d331bCopy full SHA for e8d331b
packages/hypergraph-react/src/internal/use-query-public.tsx
@@ -205,7 +205,7 @@ const convertRelations = <S extends Entity.AnyNoContext>(
205
const rawEntity: Record<string, string | boolean | number | unknown[] | URL | Date> = {};
206
207
for (const [key, relationId] of Object.entries(mappingEntry?.relations ?? {})) {
208
- const properties = (queryEntity.relations ?? []).filter((a) => a.type.id === relationId);
+ const properties = (queryEntity.relations ?? []).filter((a) => a.type?.id === relationId);
209
if (properties.length === 0) {
210
rawEntity[key] = [] as unknown[];
211
continue;
0 commit comments