use fetchWrapper for getEventById.js

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-01-28 15:19:44 +01:00
parent e9c8b7cda8
commit 4f184dd7c5
3 changed files with 7 additions and 25 deletions
@@ -11,8 +11,8 @@ export function EventDetailProvider({ children }) {
const updateEventInfo = async (id) => {
const e = await getEventById(id);
setEventInfo(e);
setTasks(e.tasks)
setEventInfo(e.data);
setTasks(e.data.tasks)
}
const deleteTask = async (id, eventId) => {