1
0
mirror of https://github.com/karl0ss/homepage.git synced 2025-05-23 22:35:18 +01:00

Fix: better display tubearchivist error detail

This commit is contained in:
shamoon 2025-03-10 23:59:57 -07:00
parent e9630afa30
commit 955baf9cb1
No known key found for this signature in database

@ -14,8 +14,8 @@ export default function Component({ service }) {
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "channels"); const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "channels");
const { data: playlistsData, error: playlistsError } = useWidgetAPI(widget, "playlists"); const { data: playlistsData, error: playlistsError } = useWidgetAPI(widget, "playlists");
if (downloadsError || videosError || channelsError || playlistsError) { if (downloadsError || videosError || channelsError || playlistsError || (downloadsData && downloadsData.detail)) {
const finalError = downloadsError ?? videosError ?? channelsError ?? playlistsError; const finalError = downloadsError ?? videosError ?? channelsError ?? playlistsError ?? downloadsData.detail;
return <Container service={service} error={finalError} />; return <Container service={service} error={finalError} />;
} }