dashboard: do not crash if sysinfo cache still contains removed volume info

This commit is contained in:
Johannes Zellner
2024-05-22 11:39:19 +02:00
parent cb8731b915
commit 92b6a7e335
+1 -1
View File
@@ -100,7 +100,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
else content.label = content.app.label || content.app.fqdn;
} else if (content.type === 'volume') {
content.volume = $scope.volumesById[content.id];
content.label = content.volume.name;
content.label = content.volume ? content.volume.name : 'Removed volume';
}
// ensure a label for ui