udpate max width, safe property access

This commit is contained in:
Alex Holliday committed 2025-02-07 14:49:38 -08:00
1 parent 163d1a3e6e
commit 5c5d1b88e6
2 files changed
+2 -2

No files matched your search

@@ -80,7 +80,7 @@ const ControlsHeader = ({ statusPage, isDeleting, isDeleteOpen, setIsDeleteOpen
<Image <Image
shouldRender={statusPage?.logo?.data ? true : false} shouldRender={statusPage?.logo?.data ? true : false}
alt={"Company logo"} alt={"Company logo"}
maxWidth={"100px"} maxWidth={"300px"}
base64={statusPage?.logo?.data} base64={statusPage?.logo?.data}
/> />
<Typography variant="h2">{statusPage?.companyName}</Typography> <Typography variant="h2">{statusPage?.companyName}</Typography>
@@ -34,7 +34,7 @@ const MonitorsList = ({ monitors = [] }) => {
gap={theme.spacing(20)} gap={theme.spacing(20)}
> >
<Box flex={9}> <Box flex={9}>
<StatusPageBarChart checks={monitor.checks.slice().reverse()} /> <StatusPageBarChart checks={monitor?.checks?.slice().reverse()} />
</Box> </Box>
<Box flex={1}> <Box flex={1}>
<StatusLabel <StatusLabel