1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 13:25:26 +02:00

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

This commit is contained in:
Anthony Lapenna 2016-08-10 15:40:35 +12:00 committed by GitHub
parent 1d8f51c141
commit 22122a27b5

View file

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