mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[AC-2330] Updated Cipher Collections Now Sets Readonly Properly (#8549)
Update putCipherCollection call to get new cipher with updated edit value
This commit is contained in:
@@ -683,8 +683,8 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
|
||||
async saveCollectionsWithServer(cipher: Cipher): Promise<any> {
|
||||
const request = new CipherCollectionsRequest(cipher.collectionIds);
|
||||
await this.apiService.putCipherCollections(cipher.id, request);
|
||||
const data = cipher.toCipherData();
|
||||
const response = await this.apiService.putCipherCollections(cipher.id, request);
|
||||
const data = new CipherData(response);
|
||||
await this.upsert(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user