mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
skip no folder when updating key
This commit is contained in:
@@ -80,6 +80,9 @@ export class UpdateKeyComponent {
|
|||||||
|
|
||||||
const folders = await this.folderService.getAllDecrypted();
|
const folders = await this.folderService.getAllDecrypted();
|
||||||
for (let i = 0; i < folders.length; i++) {
|
for (let i = 0; i < folders.length; i++) {
|
||||||
|
if (folders[i].id == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const folder = await this.folderService.encrypt(folders[i], encKey[0]);
|
const folder = await this.folderService.encrypt(folders[i], encKey[0]);
|
||||||
request.folders.push(new FolderWithIdRequest(folder));
|
request.folders.push(new FolderWithIdRequest(folder));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user