fix(volumes): fix loading text displayed when no volumes present

Volumes is undefined when no volumes are present. The loading text will remain until volumes is defined.
pull/370/head
Glowbal 2016-11-25 07:16:28 +01:00 committed by Anthony Lapenna
parent 8fcae6810e
commit 868b400af3
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function ($scope, $state, Volume, Messages, Settings) {
function fetchVolumes() {
$('#loadVolumesSpinner').show();
Volume.query({}, function (d) {
$scope.volumes = d.Volumes;
$scope.volumes = d.Volumes || [];
$('#loadVolumesSpinner').hide();
}, function (e) {
$('#loadVolumesSpinner').hide();