Commit 49268de4 authored by Ragnar-H's avatar Ragnar-H

Add null guard for rootStorageStatistics

This happens when there is no rootStorageStatistics
gathered for the namespace. Then we intentionally return null.
parent eb8b8485
......@@ -130,7 +130,7 @@ export const parseGetStorageResults = data => {
repositorySizeExcessProjectCount,
totalRepositorySize,
totalRepositorySizeExcess,
totalUsage: rootStorageStatistics.storageSize
totalUsage: rootStorageStatistics?.storageSize
? numberToHumanSize(rootStorageStatistics.storageSize)
: 'N/A',
rootStorageStatistics,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment