fix: return response.data.schedule
This commit is contained in:
@@ -152,7 +152,7 @@ export const getSchedule = async (id: string) => {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.get(`http://localhost:8080/storage/schedule/${id}`);
|
const response = await axios.get(`http://localhost:8080/storage/schedule/${id}`);
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.data;
|
return response.data.schedule;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Couldn't retrieve schedule for recording ${id}`);
|
throw new Error(`Couldn't retrieve schedule for recording ${id}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user