From 9a461b853689fdbc8229c8e103c5e237e451425f Mon Sep 17 00:00:00 2001 From: James Date: Sat, 10 Sep 2022 17:58:39 -0700 Subject: [PATCH] fix: #1106 --- .../collections/List/RelationshipProvider/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/admin/components/views/collections/List/RelationshipProvider/index.tsx b/src/admin/components/views/collections/List/RelationshipProvider/index.tsx index b3f8b32b51..be93b8a7ea 100644 --- a/src/admin/components/views/collections/List/RelationshipProvider/index.tsx +++ b/src/admin/components/views/collections/List/RelationshipProvider/index.tsx @@ -9,9 +9,9 @@ import useDebounce from '../../../../../hooks/useDebounce'; // set to false when no doc is returned // or set to the document returned export type Documents = { - [slug: string]: { - [id: string | number]: TypeWithID | null | false - } + [slug: string]: { + [id: string | number]: TypeWithID | null | false + } } type ListRelationshipContext = { @@ -24,7 +24,7 @@ type ListRelationshipContext = { const Context = createContext({} as ListRelationshipContext); -export const RelationshipProvider: React.FC<{children?: React.ReactNode}> = ({ children }) => { +export const RelationshipProvider: React.FC<{ children?: React.ReactNode }> = ({ children }) => { const [documents, dispatchDocuments] = useReducer(reducer, {}); const debouncedDocuments = useDebounce(documents, 100); const config = useConfig(); @@ -48,7 +48,7 @@ export const RelationshipProvider: React.FC<{children?: React.ReactNode}> = ({ c const params = { depth: 0, 'where[id][in]': idsToLoad, - pagination: false, + limit: 250, }; const query = querystring.stringify(params, { addQueryPrefix: true });