mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Update homebridge, autobrr, truenas, tubearchivist, watchtower, pyload widgets
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user