mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add detailed Error component for service widgets
This commit is contained in:
@@ -14,8 +14,9 @@ export default function Component({ service }) {
|
||||
refreshInterval: 5000,
|
||||
});
|
||||
|
||||
if (plexAPIError) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
if (plexAPIError || plexData?.error) {
|
||||
const finalError = plexAPIError ?? plexData.error;
|
||||
return <Container error={finalError} />;
|
||||
}
|
||||
|
||||
if (!plexData) {
|
||||
|
||||
Reference in New Issue
Block a user