diff --git a/src/api/storage.ts b/src/api/storage.ts index a39dc94c..da017027 100644 --- a/src/api/storage.ts +++ b/src/api/storage.ts @@ -152,7 +152,7 @@ export const getSchedule = async (id: string) => { try { const response = await axios.get(`http://localhost:8080/storage/schedule/${id}`); if (response.status === 200) { - return response.data; + return response.data.schedule; } else { throw new Error(`Couldn't retrieve schedule for recording ${id}`); }