check that chunks has length
This commit is contained in:
parent
eab5c0db12
commit
c3eb6bb972
|
@ -75,6 +75,7 @@
|
|||
$rootScope.vaultLogins = $scope.logins = $filter('orderBy')(decLogins, ['sort', 'name', 'username']);
|
||||
|
||||
var chunks = chunk($rootScope.vaultLogins, 400);
|
||||
if (chunks.length > 0) {
|
||||
$scope.logins = chunks[0];
|
||||
var delay = 200;
|
||||
angular.forEach(chunks, function (value, index) {
|
||||
|
@ -88,6 +89,7 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function sortScopedLoginData() {
|
||||
$rootScope.vaultLogins = $scope.logins = $filter('orderBy')($rootScope.vaultLogins, ['name', 'username']);
|
||||
|
|
Loading…
Reference in New Issue