mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-20 11:39:49 +00:00
Update homebridge, autobrr, truenas, tubearchivist, watchtower, pyload widgets
This commit is contained in:
parent
f473d324df
commit
00163d2f44
10 changed files with 40 additions and 14 deletions
|
@ -12,8 +12,9 @@ export default function Component({ service }) {
|
|||
|
||||
const { data: watchData, error: watchError } = useWidgetAPI(widget, "watchtower");
|
||||
|
||||
if (watchError || !watchData) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
if (watchError || watchData?.error) {
|
||||
const finalError = watchError ?? watchData?.error;
|
||||
return <Container error={finalError} />;
|
||||
}
|
||||
|
||||
if (!watchData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue