From c6197a9f92dcb5f7bd5887a621d7ebe2804957f9 Mon Sep 17 00:00:00 2001 From: Yann Hodiesne <56298263+yannhodiesne@users.noreply.github.com> Date: Sun, 3 Aug 2025 16:50:26 +0200 Subject: [PATCH] Fix: properly handle UptimeRobot errors (#5621) --- src/widgets/uptimerobot/component.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/uptimerobot/component.jsx b/src/widgets/uptimerobot/component.jsx index a1f234c2e..228b5b9a9 100644 --- a/src/widgets/uptimerobot/component.jsx +++ b/src/widgets/uptimerobot/component.jsx @@ -31,6 +31,10 @@ export default function Component({ service }) { ); } + if (uptimerobotData.error) { + return ; + } + // multiple monitors if (uptimerobotData.pagination?.total > 1) { const sitesUp = uptimerobotData.monitors.filter((m) => m.status === 2).length;