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}'` : ''), })) })