Attendees Modal done

This commit is contained in:
Paulo Pinto
2020-08-26 16:07:29 +01:00
parent e8e47b8680
commit 306c0ecd19
4 changed files with 55 additions and 31 deletions
@@ -44,13 +44,16 @@ export class AttendeeModalPage implements OnInit {
this.contactsService.getContacts(filter).subscribe(result =>
{
this.eventPersons.forEach(attendee => {
const index: number = result.findIndex((cont) => {
return cont.EmailAddress == attendee.EmailAddress
if (this.eventPersons != null)
{
this.eventPersons.forEach(attendee => {
const index: number = result.findIndex((cont) => {
return cont.EmailAddress == attendee.EmailAddress
});
result.splice(index, 1);
});
result.splice(index, 1);
});
}
this.contacts = result;
this.showLoader = false;