diff --git a/src/components/services/widget/container.jsx b/src/components/services/widget/container.jsx
index c2249f56..f4d8c13e 100644
--- a/src/components/services/widget/container.jsx
+++ b/src/components/services/widget/container.jsx
@@ -1,8 +1,18 @@
+import { useContext } from "react";
+
import Error from "./error";
+import { SettingsContext } from "utils/contexts/settings";
+
export default function Container({ error = false, children, service }) {
+ const { settings } = useContext(SettingsContext);
+
if (error) {
- return
+ if (settings.hideErrors || service.widget.hide_errors) {
+ return null;
+ }
+
+ return
}
let visibleChildren = children;
diff --git a/src/components/services/widget/error.jsx b/src/components/services/widget/error.jsx
index cf5e1366..587c572f 100644
--- a/src/components/services/widget/error.jsx
+++ b/src/components/services/widget/error.jsx
@@ -9,12 +9,10 @@ function displayData(data) {
return (data.type === 'Buffer') ? Buffer.from(data).toString() : JSON.stringify(data, 4);
}
-export default function Error({ error }) {
+export default function Error({ error: err }) {
const { t } = useTranslation();
- if (error?.data?.error) {
- error = error.data.error; // eslint-disable-line no-param-reassign
- }
+ const { error } = err?.data ?? { error: err };
return (
diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js
index d4d48a13..c38fe47c 100644
--- a/src/utils/config/service-helpers.js
+++ b/src/utils/config/service-helpers.js
@@ -257,6 +257,7 @@ export function cleanServiceGroups(groups) {
const {
type, // all widgets
fields,
+ hideErrors,
server, // docker widget
container,
currency, // coinmarketcap widget
@@ -269,7 +270,7 @@ export function cleanServiceGroups(groups) {
wan, // opnsense widget,
enableBlocks, // emby/jellyfin
enableNowPlaying,
- volume // diskstation widget
+ volume, // diskstation widget
} = cleanedService.widget;
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
@@ -277,6 +278,7 @@ export function cleanServiceGroups(groups) {
cleanedService.widget = {
type,
fields: fieldsList || null,
+ hide_errors: hideErrors || false,
service_name: service.name,
service_group: serviceGroup.name,
};
diff --git a/src/widgets/adguard/component.jsx b/src/widgets/adguard/component.jsx
index bab969ad..0c58ba69 100644
--- a/src/widgets/adguard/component.jsx
+++ b/src/widgets/adguard/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: adguardData, error: adguardError } = useWidgetAPI(widget, "stats");
if (adguardError) {
- return ;
+ return ;
}
if (!adguardData) {
diff --git a/src/widgets/audiobookshelf/component.jsx b/src/widgets/audiobookshelf/component.jsx
index 2ac38be0..0991cb6d 100755
--- a/src/widgets/audiobookshelf/component.jsx
+++ b/src/widgets/audiobookshelf/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
if (librariesError) {
- return ;
+ return ;
}
if (!librariesData) {
diff --git a/src/widgets/authentik/component.jsx b/src/widgets/authentik/component.jsx
index 84498db4..99449e40 100644
--- a/src/widgets/authentik/component.jsx
+++ b/src/widgets/authentik/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (usersError || loginsError || failedLoginsError) {
const finalError = usersError ?? loginsError ?? failedLoginsError;
- return ;
+ return ;
}
if (!usersData || !loginsData || !failedLoginsData) {
diff --git a/src/widgets/autobrr/component.jsx b/src/widgets/autobrr/component.jsx
index 3c170243..f983789b 100644
--- a/src/widgets/autobrr/component.jsx
+++ b/src/widgets/autobrr/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (statsError || filtersError || indexersError) {
const finalError = statsError ?? filtersError ?? indexersError;
- return ;
+ return ;
}
if (!statsData || !filtersData || !indexersData) {
diff --git a/src/widgets/bazarr/component.jsx b/src/widgets/bazarr/component.jsx
index 0537c180..082e368a 100644
--- a/src/widgets/bazarr/component.jsx
+++ b/src/widgets/bazarr/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
if (moviesError || episodesError) {
const finalError = moviesError ?? episodesError;
- return ;
+ return ;
}
if (!episodesData || !moviesData) {
diff --git a/src/widgets/changedetectionio/component.jsx b/src/widgets/changedetectionio/component.jsx
index 6f98df6b..e8e5106b 100644
--- a/src/widgets/changedetectionio/component.jsx
+++ b/src/widgets/changedetectionio/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data, error } = useWidgetAPI(widget, "info");
if (error) {
- return ;
+ return ;
}
if (!data) {
diff --git a/src/widgets/channelsdvrserver/component.jsx b/src/widgets/channelsdvrserver/component.jsx
index d989c9a8..52e94c29 100644
--- a/src/widgets/channelsdvrserver/component.jsx
+++ b/src/widgets/channelsdvrserver/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "status");
if (channelsError) {
- return ;
+ return ;
}
if (!channelsData) {
diff --git a/src/widgets/cloudflared/component.jsx b/src/widgets/cloudflared/component.jsx
index 2cbcd45b..733650ff 100644
--- a/src/widgets/cloudflared/component.jsx
+++ b/src/widgets/cloudflared/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "cfd_tunnel");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
@@ -28,4 +28,4 @@ export default function Component({ service }) {
);
-}
\ No newline at end of file
+}
diff --git a/src/widgets/coinmarketcap/component.jsx b/src/widgets/coinmarketcap/component.jsx
index 180ffe22..554bb044 100644
--- a/src/widgets/coinmarketcap/component.jsx
+++ b/src/widgets/coinmarketcap/component.jsx
@@ -38,7 +38,7 @@ export default function Component({ service }) {
}
if (statsError) {
- return ;
+ return ;
}
if (!statsData || !dateRange) {
diff --git a/src/widgets/deluge/component.jsx b/src/widgets/deluge/component.jsx
index f3761b8f..0d7190d4 100644
--- a/src/widgets/deluge/component.jsx
+++ b/src/widgets/deluge/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: torrentData, error: torrentError } = useWidgetAPI(widget);
if (torrentError) {
- return ;
+ return ;
}
if (!torrentData) {
diff --git a/src/widgets/diskstation/component.jsx b/src/widgets/diskstation/component.jsx
index afc41ae4..3ece19d1 100644
--- a/src/widgets/diskstation/component.jsx
+++ b/src/widgets/diskstation/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: utilizationData, error: utilizationError } = useWidgetAPI(widget, "utilization");
if (storageError || infoError || utilizationError) {
- return ;
+ return ;
}
if (!storageData || !infoData || !utilizationData) {
diff --git a/src/widgets/docker/component.jsx b/src/widgets/docker/component.jsx
index 88b47add..df341685 100644
--- a/src/widgets/docker/component.jsx
+++ b/src/widgets/docker/component.jsx
@@ -19,7 +19,7 @@ export default function Component({ service }) {
if (statsError || statsData?.error || statusError || statusData?.error) {
const finalError = statsError ?? statsData?.error ?? statusError ?? statusData?.error;
- return ;
+ return ;
}
if (statusData && !(statusData.status.includes("running") || statusData.status.includes("partial"))) {
diff --git a/src/widgets/downloadstation/component.jsx b/src/widgets/downloadstation/component.jsx
index a91d1891..9e47c5f4 100644
--- a/src/widgets/downloadstation/component.jsx
+++ b/src/widgets/downloadstation/component.jsx
@@ -10,7 +10,7 @@ export default function Component({ service }) {
const { data: listData, error: listError } = useWidgetAPI(widget, "list");
if (listError) {
- return ;
+ return ;
}
const tasks = listData?.data?.tasks;
diff --git a/src/widgets/emby/component.jsx b/src/widgets/emby/component.jsx
index 0e0351ea..a78ad51f 100644
--- a/src/widgets/emby/component.jsx
+++ b/src/widgets/emby/component.jsx
@@ -206,7 +206,7 @@ export default function Component({ service }) {
}
if (sessionsError || countError) {
- return ;
+ return ;
}
const enableBlocks = service.widget?.enableBlocks
diff --git a/src/widgets/fileflows/component.jsx b/src/widgets/fileflows/component.jsx
index 274ed76d..39a7160a 100755
--- a/src/widgets/fileflows/component.jsx
+++ b/src/widgets/fileflows/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: fileflowsData, error: fileflowsError } = useWidgetAPI(widget, "status");
if (fileflowsError) {
- return ;
+ return ;
}
if (!fileflowsData) {
diff --git a/src/widgets/flood/component.jsx b/src/widgets/flood/component.jsx
index 57e43943..3aca12fe 100644
--- a/src/widgets/flood/component.jsx
+++ b/src/widgets/flood/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: torrentData, error: torrentError } = useWidgetAPI(widget, "torrents");
if (torrentError || !torrentData?.torrents) {
- return ;
+ return ;
}
if (!torrentData || !torrentData.torrents) {
diff --git a/src/widgets/freshrss/component.jsx b/src/widgets/freshrss/component.jsx
index 9381beb1..788f1f6f 100644
--- a/src/widgets/freshrss/component.jsx
+++ b/src/widgets/freshrss/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: freshrssData, error: freshrssError } = useWidgetAPI(widget, "info");
if (freshrssError) {
- return ;
+ return ;
}
if (!freshrssData) {
diff --git a/src/widgets/ghostfolio/component.jsx b/src/widgets/ghostfolio/component.jsx
index 7a56ae0b..c197c389 100644
--- a/src/widgets/ghostfolio/component.jsx
+++ b/src/widgets/ghostfolio/component.jsx
@@ -18,7 +18,7 @@ export default function Component({ service }) {
if (ghostfolioErrorToday || ghostfolioErrorYear || ghostfolioErrorMax) {
const finalError = ghostfolioErrorToday ?? ghostfolioErrorYear ?? ghostfolioErrorMax
- return ;
+ return ;
}
if (!performanceToday || !performanceYear || !performanceMax) {
diff --git a/src/widgets/gluetun/component.jsx b/src/widgets/gluetun/component.jsx
index 59e490ce..c4ec14fb 100644
--- a/src/widgets/gluetun/component.jsx
+++ b/src/widgets/gluetun/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: gluetunData, error: gluetunError } = useWidgetAPI(widget, "ip");
if (gluetunError) {
- return ;
+ return ;
}
if (!gluetunData) {
diff --git a/src/widgets/gotify/component.jsx b/src/widgets/gotify/component.jsx
index 7cd5c135..70570411 100644
--- a/src/widgets/gotify/component.jsx
+++ b/src/widgets/gotify/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
if (appsError || messagesError || clientsError) {
const finalError = appsError ?? messagesError ?? clientsError;
- return ;
+ return ;
}
diff --git a/src/widgets/grafana/component.jsx b/src/widgets/grafana/component.jsx
index 98d4c42b..5c8a7fc5 100755
--- a/src/widgets/grafana/component.jsx
+++ b/src/widgets/grafana/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: alertsData, error: alertsError } = useWidgetAPI(widget, "alerts");
if (statsError || alertsError) {
- return ;
+ return ;
}
if (!statsData || !alertsData) {
diff --git a/src/widgets/hdhomerun/component.jsx b/src/widgets/hdhomerun/component.jsx
index 79160dc3..eda138a8 100644
--- a/src/widgets/hdhomerun/component.jsx
+++ b/src/widgets/hdhomerun/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: channelsData, error: channelsError } = useWidgetAPI(widget, "lineup");
if (channelsError) {
- return ;
+ return ;
}
if (!channelsData) {
diff --git a/src/widgets/healthchecks/component.jsx b/src/widgets/healthchecks/component.jsx
index 37e0f853..27d714c2 100644
--- a/src/widgets/healthchecks/component.jsx
+++ b/src/widgets/healthchecks/component.jsx
@@ -30,7 +30,7 @@ export default function Component({ service }) {
const { data, error } = useWidgetAPI(widget, "checks");
if (error) {
- return ;
+ return ;
}
if (!data) {
diff --git a/src/widgets/homeassistant/component.jsx b/src/widgets/homeassistant/component.jsx
index 48fa61ff..72e10149 100644
--- a/src/widgets/homeassistant/component.jsx
+++ b/src/widgets/homeassistant/component.jsx
@@ -7,7 +7,7 @@ export default function Component({ service }) {
const { data, error } = useWidgetAPI(widget, null, { refreshInterval: 60000 });
if (error) {
- return ;
+ return ;
}
return
diff --git a/src/widgets/homebridge/component.jsx b/src/widgets/homebridge/component.jsx
index c4f1624a..2be20a36 100644
--- a/src/widgets/homebridge/component.jsx
+++ b/src/widgets/homebridge/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: homebridgeData, error: homebridgeError } = useWidgetAPI(widget, "info");
if (homebridgeError) {
- return ;
+ return ;
}
if (!homebridgeData) {
diff --git a/src/widgets/immich/component.jsx b/src/widgets/immich/component.jsx
index b90bda8d..125a67ac 100644
--- a/src/widgets/immich/component.jsx
+++ b/src/widgets/immich/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: immichData, error: immichError } = useWidgetAPI(widget);
if (immichError || immichData?.statusCode === 401) {
- return ;
+ return ;
}
if (!immichData) {
diff --git a/src/widgets/jackett/component.jsx b/src/widgets/jackett/component.jsx
index b70cbd95..122e5012 100644
--- a/src/widgets/jackett/component.jsx
+++ b/src/widgets/jackett/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: indexersData, error: indexersError } = useWidgetAPI(widget, "indexers");
if (indexersError) {
- return ;
+ return ;
}
if (!indexersData) {
diff --git a/src/widgets/jellyseerr/component.jsx b/src/widgets/jellyseerr/component.jsx
index a129909e..7fb3971e 100644
--- a/src/widgets/jellyseerr/component.jsx
+++ b/src/widgets/jellyseerr/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "request/count");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
diff --git a/src/widgets/komga/component.jsx b/src/widgets/komga/component.jsx
index 9d6c406f..3cf51bd8 100644
--- a/src/widgets/komga/component.jsx
+++ b/src/widgets/komga/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
if (libraryError || seriesError || bookError) {
const finalError = libraryError ?? seriesError ?? bookError;
- return ;
+ return ;
}
if (!libraryData || !seriesData || !bookData) {
@@ -34,4 +34,4 @@ export default function Component({ service }) {
);
-}
\ No newline at end of file
+}
diff --git a/src/widgets/kopia/component.jsx b/src/widgets/kopia/component.jsx
index dcc763e6..46690990 100755
--- a/src/widgets/kopia/component.jsx
+++ b/src/widgets/kopia/component.jsx
@@ -38,7 +38,7 @@ export default function Component({ service }) {
const { data: statusData, error: statusError } = useWidgetAPI(widget, "status");
if (statusError) {
- return ;
+ return ;
}
const source = statusData?.sources[0];
@@ -65,4 +65,4 @@ export default function Component({ service }) {
{nextTime && }
);
-}
\ No newline at end of file
+}
diff --git a/src/widgets/kubernetes/component.jsx b/src/widgets/kubernetes/component.jsx
index 1615ebd5..c4d67553 100644
--- a/src/widgets/kubernetes/component.jsx
+++ b/src/widgets/kubernetes/component.jsx
@@ -16,7 +16,7 @@ export default function Component({ service }) {
`/api/kubernetes/stats/${widget.namespace}/${widget.app}?${podSelectorString}`);
if (statsError || statusError) {
- return ;
+ return ;
}
if (statusData && statusData.status !== "running") {
diff --git a/src/widgets/lidarr/component.jsx b/src/widgets/lidarr/component.jsx
index b612ae32..a6aa82c7 100644
--- a/src/widgets/lidarr/component.jsx
+++ b/src/widgets/lidarr/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (albumsError || wantedError || queueError) {
const finalError = albumsError ?? wantedError ?? queueError;
- return ;
+ return ;
}
if (!albumsData || !wantedData || !queueData) {
diff --git a/src/widgets/mastodon/component.jsx b/src/widgets/mastodon/component.jsx
index fd4f0ece..154c9d17 100644
--- a/src/widgets/mastodon/component.jsx
+++ b/src/widgets/mastodon/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "instance");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
diff --git a/src/widgets/medusa/component.jsx b/src/widgets/medusa/component.jsx
index 47bad7d4..d7cc3f39 100644
--- a/src/widgets/medusa/component.jsx
+++ b/src/widgets/medusa/component.jsx
@@ -13,7 +13,7 @@ export default function Component({ service }) {
if (statsError || futureError) {
const finalError = statsError ?? futureError;
- return ;
+ return ;
}
if (!statsData || !futureData) {
diff --git a/src/widgets/mikrotik/component.jsx b/src/widgets/mikrotik/component.jsx
index 37a8f706..97c477e3 100644
--- a/src/widgets/mikrotik/component.jsx
+++ b/src/widgets/mikrotik/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
if (statsError || leasesError) {
const finalError = statsError ?? leasesError;
- return ;
+ return ;
}
if (!statsData || !leasesData) {
diff --git a/src/widgets/minecraft/component.jsx b/src/widgets/minecraft/component.jsx
index 013d7606..e1f0589b 100644
--- a/src/widgets/minecraft/component.jsx
+++ b/src/widgets/minecraft/component.jsx
@@ -10,7 +10,7 @@ export default function Component({ service }) {
const { t } = useTranslation();
if(serverError){
- return ;
+ return ;
}
if (!serverData) {
return (
diff --git a/src/widgets/miniflux/component.jsx b/src/widgets/miniflux/component.jsx
index dbfd6048..aa4699ad 100644
--- a/src/widgets/miniflux/component.jsx
+++ b/src/widgets/miniflux/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: minifluxData, error: minifluxError } = useWidgetAPI(widget, "counters");
if (minifluxError) {
- return ;
+ return ;
}
if (!minifluxData) {
diff --git a/src/widgets/moonraker/component.jsx b/src/widgets/moonraker/component.jsx
index 81bf8b90..3e788f88 100644
--- a/src/widgets/moonraker/component.jsx
+++ b/src/widgets/moonraker/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (printStatsError || displayStatsError || webHooksError) {
const finalError = printStatsError ?? displayStatsError ?? webHooksError;
- return ;
+ return ;
}
if (!printStats || !displayStatus || !webHooks) {
diff --git a/src/widgets/mylar/component.jsx b/src/widgets/mylar/component.jsx
index e284c93f..c9f40171 100644
--- a/src/widgets/mylar/component.jsx
+++ b/src/widgets/mylar/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (seriesError || issuesError || wantedError) {
const finalError = seriesError ?? issuesError ?? wantedError;
- return ;
+ return ;
}
if (!seriesData || !issuesData || !wantedData) {
@@ -37,4 +37,4 @@ export default function Component({ service }) {
);
-}
\ No newline at end of file
+}
diff --git a/src/widgets/navidrome/component.jsx b/src/widgets/navidrome/component.jsx
index e45ac655..8d5ef532 100644
--- a/src/widgets/navidrome/component.jsx
+++ b/src/widgets/navidrome/component.jsx
@@ -27,7 +27,7 @@ export default function Component({ service }) {
const { data: navidromeData, error: navidromeError } = useWidgetAPI(widget, "getNowPlaying");
if (navidromeError || navidromeData?.["subsonic-response"]?.error) {
- return ;
+ return ;
}
if (!navidromeData) {
diff --git a/src/widgets/nextcloud/component.jsx b/src/widgets/nextcloud/component.jsx
index 1dc9fbff..393e2671 100755
--- a/src/widgets/nextcloud/component.jsx
+++ b/src/widgets/nextcloud/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: nextcloudData, error: nextcloudError } = useWidgetAPI(widget, "serverinfo");
if (nextcloudError) {
- return ;
+ return ;
}
if (!nextcloudData) {
diff --git a/src/widgets/nextdns/component.jsx b/src/widgets/nextdns/component.jsx
index ae239770..3e90a0b2 100644
--- a/src/widgets/nextdns/component.jsx
+++ b/src/widgets/nextdns/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: nextdnsData, error: nextdnsError } = useWidgetAPI(widget, "analytics/status");
if (nextdnsError) {
- return ;
+ return ;
}
if (!nextdnsData) {
diff --git a/src/widgets/npm/component.jsx b/src/widgets/npm/component.jsx
index b6d42ad9..37712266 100644
--- a/src/widgets/npm/component.jsx
+++ b/src/widgets/npm/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: infoData, error: infoError } = useWidgetAPI(widget, "nginx/proxy-hosts");
if (infoError) {
- return ;
+ return ;
}
if (!infoData) {
diff --git a/src/widgets/nzbget/component.jsx b/src/widgets/nzbget/component.jsx
index c016d6c5..25a3ddb6 100644
--- a/src/widgets/nzbget/component.jsx
+++ b/src/widgets/nzbget/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: statusData, error: statusError } = useWidgetAPI(widget, "status");
if (statusError) {
- return ;
+ return ;
}
if (!statusData) {
diff --git a/src/widgets/octoprint/component.jsx b/src/widgets/octoprint/component.jsx
index 6935fe59..7d3d5a1d 100644
--- a/src/widgets/octoprint/component.jsx
+++ b/src/widgets/octoprint/component.jsx
@@ -9,11 +9,11 @@ export default function Component({ service }) {
const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats");
if (printerStatsError) {
- return ;
+ return ;
}
if (jobStatsError) {
- return ;
+ return ;
}
const state = printerStats?.state?.text;
diff --git a/src/widgets/omada/component.jsx b/src/widgets/omada/component.jsx
index 2aa6df7e..ade36f2b 100644
--- a/src/widgets/omada/component.jsx
+++ b/src/widgets/omada/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
});
if (omadaAPIError) {
- return ;
+ return ;
}
if (!omadaData) {
diff --git a/src/widgets/ombi/component.jsx b/src/widgets/ombi/component.jsx
index 722d5c45..0d31081a 100644
--- a/src/widgets/ombi/component.jsx
+++ b/src/widgets/ombi/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "Request/count");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
diff --git a/src/widgets/opnsense/component.jsx b/src/widgets/opnsense/component.jsx
index 61753b47..b41e0c91 100644
--- a/src/widgets/opnsense/component.jsx
+++ b/src/widgets/opnsense/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
if (activityError || interfaceError) {
const finalError = activityError ?? interfaceError;
- return ;
+ return ;
}
if (!activityData || !interfaceData) {
diff --git a/src/widgets/overseerr/component.jsx b/src/widgets/overseerr/component.jsx
index dcb5237c..336bc6fc 100644
--- a/src/widgets/overseerr/component.jsx
+++ b/src/widgets/overseerr/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "request/count");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
diff --git a/src/widgets/paperlessngx/component.jsx b/src/widgets/paperlessngx/component.jsx
index d0c2e12f..340db9f0 100644
--- a/src/widgets/paperlessngx/component.jsx
+++ b/src/widgets/paperlessngx/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: statisticsData, error: statisticsError } = useWidgetAPI(widget, "statistics");
if (statisticsError) {
- return ;
+ return ;
}
if (!statisticsData) {
diff --git a/src/widgets/photoprism/component.jsx b/src/widgets/photoprism/component.jsx
index ee489d35..e5033eda 100644
--- a/src/widgets/photoprism/component.jsx
+++ b/src/widgets/photoprism/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: photoprismData, error: photoprismError } = useWidgetAPI(widget);
if (photoprismError) {
- return ;
+ return ;
}
if (!photoprismData) {
diff --git a/src/widgets/pihole/component.jsx b/src/widgets/pihole/component.jsx
index c39250d2..16cfa43f 100644
--- a/src/widgets/pihole/component.jsx
+++ b/src/widgets/pihole/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: piholeData, error: piholeError } = useWidgetAPI(widget, "summaryRaw");
if (piholeError) {
- return ;
+ return ;
}
if (!piholeData) {
diff --git a/src/widgets/plex/component.jsx b/src/widgets/plex/component.jsx
index bd01230f..86ba5503 100644
--- a/src/widgets/plex/component.jsx
+++ b/src/widgets/plex/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
});
if (plexAPIError) {
- return ;
+ return ;
}
if (!plexData) {
diff --git a/src/widgets/portainer/component.jsx b/src/widgets/portainer/component.jsx
index ccc26b7f..aab9eba1 100644
--- a/src/widgets/portainer/component.jsx
+++ b/src/widgets/portainer/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
});
if (containersError) {
- return ;
+ return ;
}
if (!containersData) {
@@ -28,7 +28,7 @@ export default function Component({ service }) {
}
if (containersData.error) {
- return ;
+ return ;
}
const running = containersData.filter((c) => c.State === "running").length;
diff --git a/src/widgets/prometheus/component.jsx b/src/widgets/prometheus/component.jsx
index f8cea560..80e31426 100644
--- a/src/widgets/prometheus/component.jsx
+++ b/src/widgets/prometheus/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: targetsData, error: targetsError } = useWidgetAPI(widget, "targets");
if (targetsError) {
- return ;
+ return ;
}
if (!targetsData) {
diff --git a/src/widgets/prowlarr/component.jsx b/src/widgets/prowlarr/component.jsx
index ca658f4e..6f7211f0 100644
--- a/src/widgets/prowlarr/component.jsx
+++ b/src/widgets/prowlarr/component.jsx
@@ -11,7 +11,7 @@ export default function Component({ service }) {
const { data: grabsData, error: grabsError } = useWidgetAPI(widget, "indexerstats");
if (grabsError) {
- return ;
+ return ;
}
if (!grabsData) {
diff --git a/src/widgets/proxmox/component.jsx b/src/widgets/proxmox/component.jsx
index 34fa7ff9..e022be6e 100644
--- a/src/widgets/proxmox/component.jsx
+++ b/src/widgets/proxmox/component.jsx
@@ -16,7 +16,7 @@ export default function Component({ service }) {
const { data: clusterData, error: clusterError } = useWidgetAPI(widget, "cluster/resources");
if (clusterError) {
- return ;
+ return ;
}
if (!clusterData || !clusterData.data) {
diff --git a/src/widgets/proxmoxbackupserver/component.jsx b/src/widgets/proxmoxbackupserver/component.jsx
index 7302390f..ff436077 100644
--- a/src/widgets/proxmoxbackupserver/component.jsx
+++ b/src/widgets/proxmoxbackupserver/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (datastoreError || tasksError || hostError) {
const finalError = tasksError ?? datastoreError ?? hostError;
- return ;
+ return ;
}
if (!datastoreData || !tasksData || !hostData) {
diff --git a/src/widgets/pterodactyl/component.jsx b/src/widgets/pterodactyl/component.jsx
index 346ce234..83ace637 100644
--- a/src/widgets/pterodactyl/component.jsx
+++ b/src/widgets/pterodactyl/component.jsx
@@ -10,7 +10,7 @@ export default function Component({ service }) {
const {data: nodesData, error: nodesError} = useWidgetAPI(widget, "nodes");
if (nodesError) {
- return ;
+ return ;
}
if (!nodesData) {
diff --git a/src/widgets/pyload/component.jsx b/src/widgets/pyload/component.jsx
index 8c41148e..557ad8ec 100644
--- a/src/widgets/pyload/component.jsx
+++ b/src/widgets/pyload/component.jsx
@@ -10,7 +10,7 @@ export default function Component({ service }) {
const { data: pyloadData, error: pyloadError } = useWidgetAPI(widget, "status");
if (pyloadError) {
- return ;
+ return ;
}
if (!pyloadData) {
diff --git a/src/widgets/qbittorrent/component.jsx b/src/widgets/qbittorrent/component.jsx
index d3836a6b..615709ea 100644
--- a/src/widgets/qbittorrent/component.jsx
+++ b/src/widgets/qbittorrent/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: torrentData, error: torrentError } = useWidgetAPI(widget, "torrents/info");
if (torrentError) {
- return ;
+ return ;
}
if (!torrentData) {
diff --git a/src/widgets/radarr/component.jsx b/src/widgets/radarr/component.jsx
index 4d8eeee8..f8a932ea 100644
--- a/src/widgets/radarr/component.jsx
+++ b/src/widgets/radarr/component.jsx
@@ -13,7 +13,7 @@ export default function Component({ service }) {
if (moviesError || queuedError) {
const finalError = moviesError ?? queuedError;
- return ;
+ return ;
}
if (!moviesData || !queuedData) {
diff --git a/src/widgets/readarr/component.jsx b/src/widgets/readarr/component.jsx
index 4eee11f4..bde9715a 100644
--- a/src/widgets/readarr/component.jsx
+++ b/src/widgets/readarr/component.jsx
@@ -15,7 +15,7 @@ export default function Component({ service }) {
if (booksError || wantedError || queueError) {
const finalError = booksError ?? wantedError ?? queueError;
- return ;
+ return ;
}
if (!booksData || !wantedData || !queueData) {
diff --git a/src/widgets/rutorrent/component.jsx b/src/widgets/rutorrent/component.jsx
index 300a15bd..e7dc26e7 100644
--- a/src/widgets/rutorrent/component.jsx
+++ b/src/widgets/rutorrent/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: statusData, error: statusError } = useWidgetAPI(widget);
if (statusError) {
- return ;
+ return ;
}
if (!statusData) {
diff --git a/src/widgets/sabnzbd/component.jsx b/src/widgets/sabnzbd/component.jsx
index b0cdb951..d7fde734 100644
--- a/src/widgets/sabnzbd/component.jsx
+++ b/src/widgets/sabnzbd/component.jsx
@@ -22,7 +22,7 @@ export default function Component({ service }) {
const { data: queueData, error: queueError } = useWidgetAPI(widget, "queue");
if (queueError) {
- return ;
+ return ;
}
if (!queueData) {
diff --git a/src/widgets/scrutiny/component.jsx b/src/widgets/scrutiny/component.jsx
index 0f769d9f..50cbd395 100644
--- a/src/widgets/scrutiny/component.jsx
+++ b/src/widgets/scrutiny/component.jsx
@@ -29,7 +29,7 @@ export default function Component({ service }) {
if (scrutinyError || scrutinySettingsError) {
const finalError = scrutinyError ?? scrutinySettingsError;
- return ;
+ return ;
}
if (!scrutinyData || !scrutinySettings) {
diff --git a/src/widgets/sonarr/component.jsx b/src/widgets/sonarr/component.jsx
index fd6ba9dc..adbb8c30 100644
--- a/src/widgets/sonarr/component.jsx
+++ b/src/widgets/sonarr/component.jsx
@@ -14,7 +14,7 @@ export default function Component({ service }) {
if (wantedError || queuedError || seriesError) {
const finalError = wantedError ?? queuedError ?? seriesError;
- return ;
+ return ;
}
if (!wantedData || !queuedData || !seriesData) {
diff --git a/src/widgets/speedtest/component.jsx b/src/widgets/speedtest/component.jsx
index 7d722faf..58c72ef5 100644
--- a/src/widgets/speedtest/component.jsx
+++ b/src/widgets/speedtest/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: speedtestData, error: speedtestError } = useWidgetAPI(widget, "speedtest/latest");
if (speedtestError) {
- return ;
+ return ;
}
if (!speedtestData) {
diff --git a/src/widgets/strelaysrv/component.jsx b/src/widgets/strelaysrv/component.jsx
index f58f8830..ff3039a1 100644
--- a/src/widgets/strelaysrv/component.jsx
+++ b/src/widgets/strelaysrv/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "status");
if (statsError) {
- return ;
+ return ;
}
if (!statsData) {
diff --git a/src/widgets/tautulli/component.jsx b/src/widgets/tautulli/component.jsx
index 44b1eb6d..a0328383 100644
--- a/src/widgets/tautulli/component.jsx
+++ b/src/widgets/tautulli/component.jsx
@@ -123,7 +123,7 @@ export default function Component({ service }) {
});
if (activityError) {
- return ;
+ return ;
}
if (!activityData) {
diff --git a/src/widgets/tdarr/component.jsx b/src/widgets/tdarr/component.jsx
index 5e96bf48..7bf67b46 100644
--- a/src/widgets/tdarr/component.jsx
+++ b/src/widgets/tdarr/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: tdarrData, error: tdarrError } = useWidgetAPI(widget);
if (tdarrError) {
- return ;
+ return ;
}
if (!tdarrData) {
diff --git a/src/widgets/traefik/component.jsx b/src/widgets/traefik/component.jsx
index 7739e62a..42d261e3 100644
--- a/src/widgets/traefik/component.jsx
+++ b/src/widgets/traefik/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: traefikData, error: traefikError } = useWidgetAPI(widget, "overview");
if (traefikError) {
- return ;
+ return ;
}
if (!traefikData) {
diff --git a/src/widgets/transmission/component.jsx b/src/widgets/transmission/component.jsx
index 63c3fd98..98b269a5 100644
--- a/src/widgets/transmission/component.jsx
+++ b/src/widgets/transmission/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: torrentData, error: torrentError } = useWidgetAPI(widget);
if (torrentError) {
- return ;
+ return ;
}
if (!torrentData) {
diff --git a/src/widgets/truenas/component.jsx b/src/widgets/truenas/component.jsx
index 70f917ab..eb0a0195 100644
--- a/src/widgets/truenas/component.jsx
+++ b/src/widgets/truenas/component.jsx
@@ -43,7 +43,7 @@ export default function Component({ service }) {
if (alertError || statusError) {
const finalError = alertError ?? statusError;
- return ;
+ return ;
}
if (!alertData || !statusData) {
diff --git a/src/widgets/tubearchivist/component.jsx b/src/widgets/tubearchivist/component.jsx
index b1b310d7..40791927 100644
--- a/src/widgets/tubearchivist/component.jsx
+++ b/src/widgets/tubearchivist/component.jsx
@@ -16,7 +16,7 @@ export default function Component({ service }) {
if (downloadsError || videosError || channelsError || playlistsError) {
const finalError = downloadsError ?? videosError ?? channelsError ?? playlistsError;
- return ;
+ return ;
}
if (!downloadsData || !videosData || !channelsData || !playlistsData) {
diff --git a/src/widgets/unifi/component.jsx b/src/widgets/unifi/component.jsx
index ff318516..54856f31 100644
--- a/src/widgets/unifi/component.jsx
+++ b/src/widgets/unifi/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: statsData, error: statsError } = useWidgetAPI(widget, "stat/sites");
if (statsError) {
- return ;
+ return ;
}
const defaultSite = widget.site ? statsData?.data.find(s => s.desc === widget.site) : statsData?.data?.find(s => s.name === "default");
diff --git a/src/widgets/unmanic/component.jsx b/src/widgets/unmanic/component.jsx
index 1d68e765..03447068 100644
--- a/src/widgets/unmanic/component.jsx
+++ b/src/widgets/unmanic/component.jsx
@@ -10,7 +10,7 @@ export default function Component({ service }) {
if (workersError || pendingError) {
const finalError = workersError ?? pendingError;
- return ;
+ return ;
}
if (!workersData || !pendingData) {
diff --git a/src/widgets/uptimekuma/component.jsx b/src/widgets/uptimekuma/component.jsx
index d71f9a63..ee43f07f 100644
--- a/src/widgets/uptimekuma/component.jsx
+++ b/src/widgets/uptimekuma/component.jsx
@@ -13,7 +13,7 @@ export default function Component({ service }) {
const { data: heartbeatData, error: heartbeatError } = useWidgetAPI(widget, "heartbeat");
if (statusError || heartbeatError) {
- return ;
+ return ;
}
if (!statusData || !heartbeatData) {
diff --git a/src/widgets/watchtower/component.jsx b/src/widgets/watchtower/component.jsx
index 3550e3f4..dc004533 100644
--- a/src/widgets/watchtower/component.jsx
+++ b/src/widgets/watchtower/component.jsx
@@ -13,7 +13,7 @@ export default function Component({ service }) {
const { data: watchData, error: watchError } = useWidgetAPI(widget, "watchtower");
if (watchError) {
- return ;
+ return ;
}
if (!watchData) {
diff --git a/src/widgets/whatsupdocker/component.jsx b/src/widgets/whatsupdocker/component.jsx
index 26b38dee..096bc8d4 100644
--- a/src/widgets/whatsupdocker/component.jsx
+++ b/src/widgets/whatsupdocker/component.jsx
@@ -8,7 +8,7 @@ export default function Component({ service }) {
const { data: containersData, error: containersError } = useWidgetAPI(widget, "containers");
if (containersError) {
- return ;
+ return ;
}
if (!containersData) {
diff --git a/src/widgets/xteve/component.jsx b/src/widgets/xteve/component.jsx
index 9d22e8a1..75629909 100644
--- a/src/widgets/xteve/component.jsx
+++ b/src/widgets/xteve/component.jsx
@@ -12,7 +12,7 @@ export default function Component({ service }) {
const { data: xteveData, error: xteveError } = useWidgetAPI(widget, "api");
if (xteveError) {
- return ;
+ return ;
}
if (!xteveData) {