mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
PM-7533 Add missing value assignment (#8780)
This commit is contained in:
parent
f15bffb040
commit
c045558312
@ -785,7 +785,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
async upsert(cipher: CipherData | CipherData[]): Promise<any> {
|
async upsert(cipher: CipherData | CipherData[]): Promise<any> {
|
||||||
const ciphers = cipher instanceof CipherData ? [cipher] : cipher;
|
const ciphers = cipher instanceof CipherData ? [cipher] : cipher;
|
||||||
await this.updateEncryptedCipherState((current) => {
|
await this.updateEncryptedCipherState((current) => {
|
||||||
ciphers.forEach((c) => current[c.id as CipherId]);
|
ciphers.forEach((c) => (current[c.id as CipherId] = c));
|
||||||
return current;
|
return current;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user