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:
parent
8fcae6810e
commit
868b400af3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue