mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Fix error
This commit is contained in:
@@ -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=> {})
|
||||||
|
|||||||
Reference in New Issue
Block a user