From 24a9e9f61c48f20657ec738c1764c62c0209d769 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 10 Aug 2016 15:39:59 +1200 Subject: [PATCH] fix(dashboard): fix an error when no volumes are availables --- app/components/dashboard/dashboardController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/dashboard/dashboardController.js b/app/components/dashboard/dashboardController.js index 2b3667304..0368f3ee2 100644 --- a/app/components/dashboard/dashboardController.js +++ b/app/components/dashboard/dashboardController.js @@ -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) {