Skip to content

Commit

Permalink
fix: start date in recurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Dec 18, 2024
1 parent 2504f8d commit 155b7e2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ class RecurrenceWidget extends Component {
} else if (isEqual(value, MONDAYFRIDAY_DAYS)) {
formValues['freq'] = FREQUENCES.MONDAYFRIDAY;
} else
formValues[option] = value.map((d) => {
return this.getWeekday(d);
});
formValues[option] = value
? value.map((d) => {
return this.getWeekday(d);
})
: [];
}
break;
case 'bymonthday':
Expand Down Expand Up @@ -538,7 +540,7 @@ class RecurrenceWidget extends Component {
}
let exdates = Object.assign([], rruleSet.exdates());
let rdates = Object.assign([], rruleSet.rdates());
if (field === 'dstart') dstart = value;
if (field === 'dtstart') dstart = value;
else if (field === 'exdates') exdates = value;
else if (field === 'rdates') rdates = value;
else if (field === 'freq') {
Expand Down

0 comments on commit 155b7e2

Please sign in to comment.