From 7b38f050199b8179fd803870bea8af24cd16096a Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 23 Mar 2021 17:10:30 -0600 Subject: [PATCH] ui(nests): fix broken pagination --- resources/scripts/api/admin/nests/getNests.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/scripts/api/admin/nests/getNests.ts b/resources/scripts/api/admin/nests/getNests.ts index 548ed2dba..095c5800b 100644 --- a/resources/scripts/api/admin/nests/getNests.ts +++ b/resources/scripts/api/admin/nests/getNests.ts @@ -42,7 +42,13 @@ export default (include: string[] = []) => { const { page } = useContext(Context); return useSWR>([ 'nests', page ], async () => { - const { data } = await http.get('/api/application/nests', { params: { include: include.join(','), page } }); + const { data } = await http.get('/api/application/nests', { + params: { + include: include.join(','), + per_page: 10, + page, + }, + }); return ({ items: (data.data || []).map(rawDataToNest),