1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

edge hates for of loops :(

This commit is contained in:
Kyle Spearrin
2017-11-16 12:49:23 -05:00
parent cc5c7fb879
commit f9b00c6871
11 changed files with 99 additions and 93 deletions

View File

@@ -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));
}
});
}
}
}