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

pull/117/head
Anthony Lapenna 2016-08-10 15:40:35 +12:00 committed by GitHub
parent 1d8f51c141
commit 22122a27b5
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) {