Fix error

This commit is contained in:
Peter Maquiran
2021-11-03 17:03:16 +01:00
parent d2f4118418
commit 39df5e42b7
2 changed files with 3 additions and 4 deletions
@@ -302,9 +302,8 @@ export class EditEventPage implements OnInit {
SerialNumber: '',
};
this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{
this.getAttachments(this.postEvent.EventId);
});
await this.attachmentsService.setEventAttachmentById(DocumentToSave).toPromise();
this.getAttachments(this.postEvent.EventId);
} else if(remove) {
this.attachmentsService.deleteEventAttachmentById(e.Id).subscribe( res=> {})