1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

skip no folder when updating key

This commit is contained in:
Kyle Spearrin 2018-07-19 13:31:14 -04:00
parent 6c7df2788e
commit 236bcdfb68

View File

@ -80,6 +80,9 @@ export class UpdateKeyComponent {
const folders = await this.folderService.getAllDecrypted();
for (let i = 0; i < folders.length; i++) {
if (folders[i].id == null) {
continue;
}
const folder = await this.folderService.encrypt(folders[i], encKey[0]);
request.folders.push(new FolderWithIdRequest(folder));
}