mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
fix return type of getPodcastByChat handler
This commit is contained in:
parent
ce4bb7e1b7
commit
839453dc8d
2 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue