Merge pull request #1685 from jonathann92/fix-tautulli-sort

Fix: Handle tautulli response when unable to connect to Plex
This commit is contained in:
shamoon 2023-07-13 23:19:11 -07:00 committed by GitHub
commit 5a7e97222c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -129,7 +129,8 @@
"playing": "Playing",
"transcoding": "Transcoding",
"bitrate": "Bitrate",
"no_active": "No Active Streams"
"no_active": "No Active Streams",
"plex_connection_error": "Check Plex Connection"
},
"omada": {
"connectedAp": "Connected APs",

View file

@ -122,8 +122,8 @@ 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) {