mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(dashboard): fix an error when no volumes are availables
This commit is contained in:
parent
1d8f51c141
commit
24a9e9f61c
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue