mirror of https://github.com/portainer/portainer
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
parent
8fcae6810e
commit
868b400af3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue