mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
Show plex connection error
This commit is contained in:
parent
aeac95db48
commit
7844991617
2 changed files with 5 additions and 4 deletions
|
@ -122,11 +122,11 @@ export default function Component({ service }) {
|
|||
refreshInterval: 5000,
|
||||
});
|
||||
|
||||
if (activityError) {
|
||||
return <Container service={service} error={activityError} />;
|
||||
if (activityError || (activityData && Object.keys(activityData.response.data).length === 0)) {
|
||||
return <Container service={service} error={activityError ?? { message: t("tautulli.plex_connection_error") } } />;
|
||||
}
|
||||
|
||||
if (!activityData || Object.keys(activityData.response.data).length === 0) {
|
||||
if (!activityData) {
|
||||
return (
|
||||
<div className="flex flex-col pb-1 mx-1">
|
||||
<div className="text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue