diff --git a/src/pages/events/s/EventListView.tsx b/src/pages/events/s/EventListView.tsx index b0ed99a..4873f18 100644 --- a/src/pages/events/s/EventListView.tsx +++ b/src/pages/events/s/EventListView.tsx @@ -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 })) })