Update parseRecurrenceEvent.ts

Parsing EventDate and EndDate in case the event instance is an exception recurrent event which resolve unhandled exception that happens when end user clicks such events with unparsed date in the calendar view.
This commit is contained in:
mohammadamer 2021-10-16 20:11:32 +03:00 committed by GitHub
parent 1911f8a5c8
commit a69b3ef469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -369,6 +369,8 @@ export default class parseRecurrentEvent {
}
}
if (e.fRecurrence === "1" && e.MasterSeriesItemID !== "") {
e.EventDate = new Date(this.parseDate(e.EventDate, e.fAllDayEvent));
e.EndDate = new Date(this.parseDate(e.EndDate, e.fAllDayEvent));
const ni = this.cloneObj(e);
er.push(ni);
}