Improve save for edit and create event in agenda

This commit is contained in:
Peter Maquiran
2021-04-09 13:43:33 +01:00
parent e8ba2b6426
commit c5ef1f1cb6
5 changed files with 109 additions and 40 deletions
@@ -2,7 +2,7 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { ContactsService } from 'src/app/services/contacts.service';
import { EventPerson } from 'src/app/models/eventperson.model';
import { removeDuplicate } from 'src/plugin/removeDuplicate.js'
@Component({
selector: 'app-attendee-modal',
templateUrl: './attendee-modal.page.html',
@@ -37,11 +37,11 @@ export class AttendeeModalPage implements OnInit {
this.fetchContacts("");
if(this.taskParticipants == null || this.taskParticipants == undefined){
if(this.taskParticipants == null || this.taskParticipants == undefined) {
this.taskParticipants = [];
}
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined){
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined) {
this.taskParticipantsCc = [];
}