fix return type of getPodcastByChat handler

This commit is contained in:
thierryverse 2025-10-27 22:10:11 +02:00
parent ce4bb7e1b7
commit 839453dc8d
2 changed files with 2 additions and 8 deletions

View file

@ -19,7 +19,7 @@ export function usePodcast() {
throw new Error(errorData.detail || "Failed to fetch podcast");
}
return (await response.json()) as PodcastItem;
return (await response.json()) as PodcastItem | null;
} catch (err: any) {
console.error("Error fetching podcast:", err);
throw err;