From 0fa3248aaa7fca040248d2ebcb07dab9b142e016 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Tue, 28 May 2024 19:53:34 +0200 Subject: [PATCH] fix(EventListsOverview): fixed bug that pagination on event lists overview is not working --- src/pages/events/e/:eventId/EventLists/EventListsOverview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/events/e/:eventId/EventLists/EventListsOverview.tsx b/src/pages/events/e/:eventId/EventLists/EventListsOverview.tsx index dbce8a7..f0a496f 100644 --- a/src/pages/events/e/:eventId/EventLists/EventListsOverview.tsx +++ b/src/pages/events/e/:eventId/EventLists/EventListsOverview.tsx @@ -99,7 +99,7 @@ export default function EventListsOverview({event}: { event: EventModel }) { const listsQuery = useQuery({ queryKey: ["event", event.id, "lists", `page-${activePage}`, `search-${listSearchQuery}`], - queryFn: async () => (await pb.collection('eventLists').getList(1, 10, { + queryFn: async () => (await pb.collection('eventLists').getList(activePage, 50, { filter: `event = '${event.id}'` + (listSearchQuery ? ` && name ~ '${listSearchQuery}'` : ''), })) })