mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-26 00:14:44 +08:00
Fix Cannot read property in credentialcounter
This commit is contained in:
parent
9e7f47a715
commit
86be5a270e
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@
|
|||
function countCredentials() {
|
||||
var countedCredentials = 0;
|
||||
var total = 0;
|
||||
if(!scope.vault.hasOwnProperty('credentials')){
|
||||
return;
|
||||
}
|
||||
|
||||
angular.forEach(scope.vault.credentials, function (credential) {
|
||||
var pos = scope.filteredCredentials.map(function(c) { return c.guid; }).indexOf(credential.guid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue