fix(EventListView): added requestKey to disable autocancalation of listSlotsQuery
Build and Push Docker image / build-and-push (push) Successful in 1m52s Details

This commit is contained in:
Valentin Kolb 2024-05-15 00:02:59 +02:00
parent 5ded51db47
commit cf82f4f957
1 changed files with 5 additions and 2 deletions

View File

@ -15,7 +15,9 @@ export default function EventListView({event, listId}: { event: EventModel, list
const listQuery = useQuery({
queryKey: ["event", "list", listId],
queryFn: async () => (await pb.collection("eventLists").getOne(listId)),
queryFn: async () => (await pb.collection("eventLists").getOne(listId, {
requestKey: listId
})),
enabled: !!listId
})
@ -24,7 +26,8 @@ export default function EventListView({event, listId}: { event: EventModel, list
queryFn: async () => (await pb.collection("eventListSlotsWithEntriesCount").getList(activePage, 10, {
filter: `eventList='${listId}'`,
sort: "startDate",
enabled: !!listId
enabled: !!listId,
requestKey: listId
}))
})