early exit if tautulli's data is an empty object
Fix for when tautulli cannot reach to plex
This commit is contained in:
parent
d75505acc8
commit
aeac95db48
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ export default function Component({ service }) {
|
||||||
return <Container service={service} error={activityError} />;
|
return <Container service={service} error={activityError} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!activityData) {
|
if (!activityData || Object.keys(activityData.response.data).length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col pb-1 mx-1">
|
<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">
|
<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
Reference in a new issue