use fetchWrapper for getEventById.js
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user