Fix PVC list so it's only tenant PVCs. Fix NPE on pod listing. (#764)

This commit is contained in:
Daniel Valdivia
2021-05-21 07:55:53 -07:00
committed by GitHub
parent 59d4ebc109
commit 87cb36c944
3 changed files with 17 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ const StorageVolumes = ({
.invoke("GET", `/api/v1/list-pvcs`)
.then((res: IPVCsResponse) => {
let volumes = get(res, "pvcs", []);
setRecords(volumes);
setRecords(volumes ? volumes : []);
setLoading(false);
})
.catch((err) => {