mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 12:18:48 +00:00
Fix: better display tubearchivist error detail
This commit is contained in:
parent
e9630afa30
commit
955baf9cb1
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ export default function Component({ service }) {
|
|||
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "channels");
|
||||
const { data: playlistsData, error: playlistsError } = useWidgetAPI(widget, "playlists");
|
||||
|
||||
if (downloadsError || videosError || channelsError || playlistsError) {
|
||||
const finalError = downloadsError ?? videosError ?? channelsError ?? playlistsError;
|
||||
if (downloadsError || videosError || channelsError || playlistsError || (downloadsData && downloadsData.detail)) {
|
||||
const finalError = downloadsError ?? videosError ?? channelsError ?? playlistsError ?? downloadsData.detail;
|
||||
return <Container service={service} error={finalError} />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue