fix(dashboard): fix an error when no volumes are availables

pull/132/head
Anthony Lapenna 2016-08-10 15:39:59 +12:00
parent 1d8f51c141
commit 24a9e9f61c
1 changed files with 3 additions and 1 deletions

View File

@ -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) {