Skip to content
Snippets Groups Projects
Verified Commit e47cde08 authored by Damien's avatar Damien
Browse files

FEAT #13517 TIME 1:30 Fix sync attachments

parent 7722ca62
No related branches found
No related tags found
No related merge requests found
......@@ -266,15 +266,13 @@ export class AttachmentCreateComponent implements OnInit {
this.sendingData = true;
const attach = this.formatAttachments();
await Promise.all(this.attachments.map(async (element: any, index: number) => {
resId = await this.saveAttachment(attach[index]);
}));
for (const attachment of attach) {
resId = await this.saveAttachment(attachment);
}
if (this.sendMassMode && resId !== null && mode === 'mailing') {
await this.generateMailling(resId);
}
this.sendingData = false;
this.notify.success(this.lang.attachmentAdded);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment