throw error on bad response from UpRock, fix empty view condition

This commit is contained in:
Alex Holliday committed 2025-02-13 16:13:39 -08:00
1 parent 064a9f6d36
commit 9cbee6d32b
3 files changed
+32 -11

No files matched your search

@@ -61,8 +61,11 @@ const DistributedUptimeDetails = () => {
</GenericFallback>
);
}
if (typeof monitor === "undefined" || monitor.totalChecks === 0) {
if (
typeof monitor === "undefined" ||
typeof monitor?.totalChecks === "undefined" ||
monitor?.totalChecks === 0
) {
return (
<Stack gap={theme.spacing(10)}>
<Breadcrumbs list={BREADCRUMBS} />