1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

Fixed issues where onReplaced and onUpdated are called multiple times

This commit is contained in:
Kyle Spearrin
2016-10-25 23:03:21 -04:00
parent 0e2e17f2e7
commit 124ac06419
3 changed files with 58 additions and 50 deletions

View File

@@ -71,12 +71,12 @@ function initFolderService() {
cryptoService.getKey(false, function (key) {
if (!key) {
deferred.reject();
return deferred.promise;
return;
}
if (self.decryptedFolderCache) {
deferred.resolve(self.decryptedFolderCache);
return deferred.promise;
return;
}
var promises = [];