fix(api): prevent checking first admin account for plex server access

This commit is contained in:
sct
2020-12-21 20:51:54 +09:00
parent e7ee85c29b
commit 22006e9dbd
3 changed files with 38 additions and 40 deletions

View File

@@ -26,16 +26,12 @@ const SettingsAbout: React.FC = () => {
'/api/v1/settings/about'
);
if (error) {
return <Error statusCode={500} />;
}
if (!data && !error) {
return <LoadingSpinner />;
}
if (!data) {
return <LoadingSpinner />;
return <Error statusCode={500} />;
}
return (