report 0 for storage usage when api returns null

This commit is contained in:
Josh Hawkins 2024-10-25 07:04:49 -05:00
parent 2714dac78e
commit 6d69232cf5

View File

@ -216,7 +216,7 @@ export function CombinedStorageGraph({
</Popover>
)}
</TableCell>
<TableCell>{getUnitSize(item.usage)}</TableCell>
<TableCell>{getUnitSize(item.usage ?? 0)}</TableCell>
<TableCell>{item.data[0].toFixed(2)}%</TableCell>
<TableCell>
{item.name === "Unused"