mirror of
https://github.com/gethomepage/homepage.git
synced 2025-08-05 08:39:52 -04:00
Fix: properly handle UptimeRobot errors (#5621)
This commit is contained in:
parent
dd861d7d1c
commit
c6197a9f92
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user