Skip to content

Commit fc3ab37

Browse files
committed
cleanup
1 parent 5af093a commit fc3ab37

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/hypergraph-react/src/internal/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export type QueryPublicParams<S extends Entity.AnyNoContext> = {
55
enabled: boolean;
66
// TODO: for multi-level nesting it should only allow the allowed properties instead of Record<string, Record<string, never>>
77
include?: { [K in keyof Schema.Schema.Type<S>]?: Record<string, Record<string, never>> } | undefined;
8-
first?: number;
8+
first?: number | undefined;
99
};

packages/hypergraph-react/src/internal/use-query-public.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ export const useQueryPublic = <S extends Entity.AnyNoContext>(type: S, params?:
343343
queryDocument = entitiesQueryDocumentLevel2;
344344
}
345345

346-
console.log('first', first);
347-
348346
const result = await request<EntityQueryResult>(GEO_API_TESTNET_ENDPOINT, queryDocument, {
349347
spaceId: space,
350348
typeIds: mappingEntry?.typeIds || [],

packages/hypergraph-react/src/use-query.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type QueryParams<S extends Entity.AnyNoContext> = {
1010
// TODO: for multi-level nesting it should only allow the allowed properties instead of Record<string, Record<string, never>>
1111
include?: { [K in keyof Schema.Schema.Type<S>]?: Record<string, Record<string, never>> } | undefined;
1212
space?: string;
13-
first?: number;
13+
first?: number | undefined;
1414
};
1515

1616
// @ts-expect-error TODO: remove this function

0 commit comments

Comments
 (0)