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