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