fixed the select repetition on edit event

This commit is contained in:
EQUILIBRIUM\hirondino.van-dunem
2022-07-06 14:52:53 +01:00
parent f1fcd5aa51
commit 6b5d61d2be
@@ -109,16 +109,17 @@ export class EditEventPage implements OnInit {
} }
} }
const result = this.participantsPipe.transform(this.postEvent.Attendees) if (this.postEvent.Attendees != null) {
this.taskParticipants = result.taskParticipants const result = this.participantsPipe.transform(this.postEvent.Attendees)
this.taskParticipantsCc = result.taskParticipantsCc this.taskParticipants = result.taskParticipants
this.taskParticipantsCc = result.taskParticipantsCc
this.taskParticipants = removeDuplicate(this.taskParticipants); this.taskParticipants = removeDuplicate(this.taskParticipants);
this.taskParticipantsCc = removeDuplicate(this.taskParticipantsCc); this.taskParticipantsCc = removeDuplicate(this.taskParticipantsCc);
this.setIntervenient.emit(this.taskParticipants);
this.setIntervenientCC.emit(this.taskParticipantsCc);
this.setIntervenient.emit(this.taskParticipants);
this.setIntervenientCC.emit(this.taskParticipantsCc);
}
} }
this.initCalendarName = this.postEvent.CalendarName; this.initCalendarName = this.postEvent.CalendarName;
@@ -127,14 +128,10 @@ export class EditEventPage implements OnInit {
this.getRecurrenceTypes(); this.getRecurrenceTypes();
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
// this.postEvent.EventRecurrence.LastOccurrence = this.currentDate;
setTimeout(() => { setTimeout(() => {
this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString(); this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();
}, 1000); }, 500);
} }