mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
edge hates for of loops
This commit is contained in:
@@ -71,18 +71,18 @@ class Cipher extends Domain {
|
||||
|
||||
if (obj.attachments != null) {
|
||||
this.attachments = [];
|
||||
for (const attachment of obj.attachments) {
|
||||
obj.attachments.forEach((attachment) => {
|
||||
this.attachments.push(new Attachment(attachment, alreadyEncrypted));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.attachments = null;
|
||||
}
|
||||
|
||||
if (obj.fields != null) {
|
||||
this.fields = [];
|
||||
for (const field of obj.fields) {
|
||||
obj.fields.forEach((field) => {
|
||||
this.fields.push(new Field(field, alreadyEncrypted));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.fields = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user