From a69b3ef4693f527e95767f4260c8db533350bc8f Mon Sep 17 00:00:00 2001 From: mohammadamer Date: Sat, 16 Oct 2021 20:11:32 +0300 Subject: [PATCH] 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. --- samples/react-calendar/src/services/parseRecurrentEvent.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/react-calendar/src/services/parseRecurrentEvent.ts b/samples/react-calendar/src/services/parseRecurrentEvent.ts index 36ae16e8c..d459862aa 100644 --- a/samples/react-calendar/src/services/parseRecurrentEvent.ts +++ b/samples/react-calendar/src/services/parseRecurrentEvent.ts @@ -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); }