Skip to content

Commit 573bf5d

Browse files
authored
Scheduler - The 'date' parameter of the deleteRecurrence method cannot be a string (T1252887) (#28352)
1 parent f39d83f commit 573bf5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/devextreme/js/__internal/scheduler/m_scheduler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,9 +2542,12 @@ class Scheduler extends Widget<any> {
25422542

25432543
deleteRecurrence(
25442544
appointment,
2545-
date,
2545+
date: Date | string,
25462546
recurrenceEditMode,
25472547
) {
2548+
if (typeof date === 'string') {
2549+
date = new Date(date);
2550+
}
25482551
this._checkRecurringAppointment(
25492552
appointment,
25502553
{ },

0 commit comments

Comments
 (0)