fix(calendar): treat empty-string recurrenceId as non-recurring when editing
Publish Docker Image / prepare (push) Successful in 11s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 51s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
Publish Docker Image / prepare (push) Successful in 11s
Publish Docker Image / build (linux/amd64, ubuntu-latest) (push) Failing after 51s
Publish Docker Image / build (linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Publish Docker Image / merge (push) Canceled after 0s
This commit is contained in:
@@ -71,7 +71,10 @@ type PendingScopeAction =
|
||||
| { type: "delete"; event: CalendarEvent; sendScheduling?: boolean };
|
||||
|
||||
function isRecurringEvent(event: CalendarEvent): boolean {
|
||||
return (event.recurrenceRules?.length ?? 0) > 0 || event.recurrenceId != null;
|
||||
// Stalwart may return an empty-string `recurrenceId` for non-recurring events
|
||||
// rather than null; treat that as non-recurring so editing doesn't route
|
||||
// through the recurrence-scope flow for a plain single event.
|
||||
return (event.recurrenceRules?.length ?? 0) > 0 || Boolean(event.recurrenceId);
|
||||
}
|
||||
|
||||
export default function CalendarPage() {
|
||||
|
||||
Reference in New Issue
Block a user