mirror of https://github.com/portainer/portainer
fix(dashboard): fix an error when no volumes are availables (#116)
parent
1d8f51c141
commit
22122a27b5
|
@ -50,7 +50,9 @@ function ($scope, $q, Config, Container, Image, Network, Volume, Info) {
|
|||
|
||||
function prepareVolumeData(d) {
|
||||
var volumes = d.Volumes;
|
||||
$scope.volumeData.total = volumes.length;
|
||||
if (volumes) {
|
||||
$scope.volumeData.total = volumes.length;
|
||||
}
|
||||
}
|
||||
|
||||
function prepareNetworkData(d) {
|
||||
|
|
Loading…
Reference in New Issue