Allow changing a single event to recurring event (#17112)

This commit is contained in:
Allen Porter 2023-06-30 08:13:21 -07:00 committed by GitHub
parent 5579713ed5
commit b43c6f9fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,7 +500,7 @@ class DialogCalendarEventEditor extends LitElement {
return; return;
} }
const eventData = this._calculateData(); const eventData = this._calculateData();
if (eventData.rrule && range === RecurrenceRange.THISEVENT) { if (entry.rrule && eventData.rrule && range === RecurrenceRange.THISEVENT) {
// Updates to a single instance of a recurring event by definition // Updates to a single instance of a recurring event by definition
// cannot change the recurrence rule and doing so would be invalid. // cannot change the recurrence rule and doing so would be invalid.
// It is difficult to detect if the user changed the recurrence rule // It is difficult to detect if the user changed the recurrence rule