Skip to content

Commit

Permalink
Fix bug (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fosol authored Jan 15, 2024
1 parent 577a4b7 commit cc770e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export const useStorageTrends = (
const groupData = groups.map((group) => {
const items = group.items.filter((i) => i.serviceNowKey === volume.serviceNowKey);
const capacity = convertToStorageSize<number>(
items[items.length - 1].capacity,
items.length ? items[items.length - 1].capacity : 0,
'MB',
'GB',
{ type: 'number' },
);
const available = convertToStorageSize<number>(
items[items.length - 1].availableSpace,
items.length ? items[items.length - 1].availableSpace : 0,
'MB',
'GB',
{ type: 'number' },
Expand Down

0 comments on commit cc770e9

Please sign in to comment.