add nullchecks for uptimePercentage

Signed-off-by: Marko Simon <marko@ilert.com>
This commit is contained in:
Marko Simon
2022-12-23 12:26:31 +01:00
parent ceb8325708
commit a4c04c17eb
@@ -86,7 +86,7 @@ export const ServicesTable = ({
cellStyle: smColumnStyle,
headerStyle: smColumnStyle,
render: rowData => (
<Typography>{rowData.uptime.uptimePercentage.p90}</Typography>
<Typography>{rowData.uptime?.uptimePercentage?.p90 || ''}</Typography>
),
};
const actionsColumn: TableColumn<Service> = {