1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 09:32:06 +01:00

PM-7533 Add missing value assignment (#8780)

This commit is contained in:
Carlos Gonçalves 2024-04-17 17:09:44 +01:00 committed by GitHub
parent f15bffb040
commit c045558312
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -785,7 +785,7 @@ export class CipherService implements CipherServiceAbstraction {
async upsert(cipher: CipherData | CipherData[]): Promise<any> {
const ciphers = cipher instanceof CipherData ? [cipher] : cipher;
await this.updateEncryptedCipherState((current) => {
ciphers.forEach((c) => current[c.id as CipherId]);
ciphers.forEach((c) => (current[c.id as CipherId] = c));
return current;
});
}