1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

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.
This commit is contained in:
Glowbal 2016-11-25 07:16:28 +01:00 committed by Anthony Lapenna
parent 8fcae6810e
commit 868b400af3

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();