mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
edge hates for of loops :(
This commit is contained in:
@@ -62,16 +62,16 @@ class CipherData {
|
||||
|
||||
if (response.data.Fields != null) {
|
||||
this.fields = [];
|
||||
for (const field of response.data.Fields) {
|
||||
response.data.Fields.forEach((field: any) => {
|
||||
this.fields.push(new FieldData(field));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (response.attachments != null) {
|
||||
this.attachments = [];
|
||||
for (const attachment of response.attachments) {
|
||||
response.attachments.forEach((attachment) => {
|
||||
this.attachments.push(new AttachmentData(attachment));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ class DomainsResponse {
|
||||
|
||||
this.globalEquivalentDomains = [];
|
||||
if (response.GlobalEquivalentDomains) {
|
||||
for (const domain of response.GlobalEquivalentDomains) {
|
||||
response.GlobalEquivalentDomains.forEach((domain: any) => {
|
||||
this.globalEquivalentDomains.push(new GlobalDomainResponse(domain));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,9 +28,9 @@ class ProfileResponse {
|
||||
this.securityStamp = response.SecurityStamp;
|
||||
|
||||
if (response.Organizations) {
|
||||
for (const org of response.Organizations) {
|
||||
response.Organizations.forEach((org: any) => {
|
||||
this.organizations.push(new ProfileOrganizationResponse(org));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,15 +15,15 @@ class SyncResponse {
|
||||
}
|
||||
|
||||
if (response.Folders) {
|
||||
for (const folder of response.Folders) {
|
||||
response.Folders.forEach((folder: any) => {
|
||||
this.folders.push(new FolderResponse(folder));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (response.Ciphers) {
|
||||
for (const cipher of response.Ciphers) {
|
||||
response.Ciphers.forEach((cipher: any) => {
|
||||
this.ciphers.push(new CipherResponse(cipher));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (response.Domains) {
|
||||
|
||||
Reference in New Issue
Block a user