Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-02-18 17:28:01 +0300
committerbrantje <brantje@gmail.com>2017-02-22 20:02:55 +0300
commit86be5a270ecfd2f03568b99ed4a74db983348518 (patch)
tree47a308e365456fbde40110063426fa84890d700d /js/app/directives
parent9e7f47a715724fc5cf01d5ddcf11a73b723d224c (diff)
Fix Cannot read property in credentialcounter
Diffstat (limited to 'js/app/directives')
-rw-r--r--js/app/directives/credentialcounter.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/app/directives/credentialcounter.js b/js/app/directives/credentialcounter.js
index 3a7a0169..90eefaa3 100644
--- a/js/app/directives/credentialcounter.js
+++ b/js/app/directives/credentialcounter.js
@@ -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);