Fix: properly handle UptimeRobot errors (#5621)

This commit is contained in:
Yann Hodiesne 2025-08-03 16:50:26 +02:00 committed by GitHub
parent dd861d7d1c
commit c6197a9f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,10 @@ export default function Component({ service }) {
);
}
if (uptimerobotData.error) {
return <Container service={service} error={uptimerobotData.error} />;
}
// multiple monitors
if (uptimerobotData.pagination?.total > 1) {
const sitesUp = uptimerobotData.monitors.filter((m) => m.status === 2).length;