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
+1 -1
View File
@@ -9,7 +9,7 @@ const Task = ({ task }) => {
useEffect(() => {
(async () => {
const e = await getEventById(task.id);
setEvent(e);
setEvent(e.data);
}) ()
}, [])