mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
[EC-584] Fixed OrganizationExportResponse to correctly parse data and use CollectionResponse and CipherResponse constructors
This commit is contained in:
@@ -9,7 +9,13 @@ export class OrganizationExportResponse extends BaseResponse {
|
|||||||
|
|
||||||
constructor(response: any) {
|
constructor(response: any) {
|
||||||
super(response);
|
super(response);
|
||||||
this.collections = this.getResponseProperty("Collections");
|
const collections = this.getResponseProperty("Collections");
|
||||||
this.ciphers = this.getResponseProperty("Ciphers");
|
if (collections != null) {
|
||||||
|
this.collections = new ListResponse(collections, CollectionResponse);
|
||||||
|
}
|
||||||
|
const ciphers = this.getResponseProperty("Ciphers");
|
||||||
|
if (ciphers != null) {
|
||||||
|
this.ciphers = new ListResponse(ciphers, CipherResponse);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user