dashboard: do not crash if sysinfo cache still contains removed volume info
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user