Skip to content

Commit

Permalink
Ensure recurrent flag is set correctly
Browse files Browse the repository at this point in the history
Fixes the `recurrent` flag not being set in the case of recurrent overrides
  • Loading branch information
mikeh authored Jan 21, 2025
1 parent 32c2c90 commit 8e19c1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/icalUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function processRecurrenceOverrides(event: any, dayToMatch: string, excludedDate
continue;
}

recurrence.recurrent = true;

// Check if this override matches the dayToMatch
if (moment(recurrence.start).isSame(dayToMatch, "day")) {
console.debug(`Adding recurring event with override: ${recurrence.summary} on ${recurrenceMoment.format('YYYY-MM-DD')}`);
Expand Down

0 comments on commit 8e19c1d

Please sign in to comment.