fix(EventListsOverview): fixed bug that pagination on event lists overview is not working
Build and Push Docker image / build-and-push (push) Successful in 1m57s Details

This commit is contained in:
Valentin Kolb 2024-05-28 19:53:34 +02:00
parent 5a00293157
commit 0fa3248aaa
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export default function EventListsOverview({event}: { event: EventModel }) {
const listsQuery = useQuery({ const listsQuery = useQuery({
queryKey: ["event", event.id, "lists", `page-${activePage}`, `search-${listSearchQuery}`], 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}'` : ''), filter: `event = '${event.id}'` + (listSearchQuery ? ` && name ~ '${listSearchQuery}'` : ''),
})) }))
}) })