mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
Add detailed Error component for service widgets
This commit is contained in:
parent
7b7740563e
commit
21017e4716
37 changed files with 113 additions and 113 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue