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
+1 -1
View File
@@ -6,7 +6,7 @@ import { EventPerson } from 'src/app/models/eventperson.model'
}) })
export class ParticipantsPipe implements PipeTransform { export class ParticipantsPipe implements PipeTransform {
transform(EventPerson: EventPerson[]): any { transform(EventPerson: EventPerson[] = []): any {
let taskParticipants = []; let taskParticipants = [];
let taskParticipantsCc = []; let taskParticipantsCc = [];
@@ -302,9 +302,8 @@ export class EditEventPage implements OnInit {
SerialNumber: '', SerialNumber: '',
}; };
this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{ await this.attachmentsService.setEventAttachmentById(DocumentToSave).toPromise();
this.getAttachments(this.postEvent.EventId); this.getAttachments(this.postEvent.EventId);
});
} else if(remove) { } else if(remove) {
this.attachmentsService.deleteEventAttachmentById(e.Id).subscribe( res=> {}) this.attachmentsService.deleteEventAttachmentById(e.Id).subscribe( res=> {})