diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 8d5eb8bb3..99911ee39 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -125,8 +125,13 @@ const SettingsPlex = ({ isSetupSettings }: SettingsPlexProps) => { error, mutate: revalidate, } = useSWR('/api/v1/settings/plex'); - const { data: dataTautulli, mutate: revalidateTautulli } = - useSWR('/api/v1/settings/tautulli'); + const { + data: dataTautulli, + error: errorTautulli, + mutate: revalidateTautulli, + } = useSWR( + isSetupSettings ? null : '/api/v1/settings/tautulli' + ); const { data: dataSync, mutate: revalidateSync } = useSWR( '/api/v1/settings/plex/sync', { @@ -334,7 +339,11 @@ const SettingsPlex = ({ isSetupSettings }: SettingsPlexProps) => { } }; - if ((!data || !dataTautulli) && !error) { + if ( + (!data || (!isSetupSettings && !dataTautulli)) && + !error && + !errorTautulli + ) { return ; } return (