diff --git a/src/lib/apis/calendar/index.ts b/src/lib/apis/calendar/index.ts index eb02b184d6..8be3b9f52b 100644 --- a/src/lib/apis/calendar/index.ts +++ b/src/lib/apis/calendar/index.ts @@ -53,7 +53,7 @@ export type CalendarEventForm = { start_at: number; end_at?: number; all_day?: boolean; - rrule?: string; + rrule?: string | null; color?: string; location?: string | null; data?: Record; diff --git a/src/lib/components/calendar/CalendarEventModal.svelte b/src/lib/components/calendar/CalendarEventModal.svelte index 55df47a9ef..75237d9323 100644 --- a/src/lib/components/calendar/CalendarEventModal.svelte +++ b/src/lib/components/calendar/CalendarEventModal.svelte @@ -140,12 +140,12 @@ const result = await updateCalendarEvent(localStorage.token, event.id, { calendar_id: calendarId, title: title.trim(), - description: description.trim() || undefined, + description: description.trim() || null, start_at: startNs, end_at: endNs, all_day: allDay, - rrule: getRepeatRrule(), - location: location.trim() || undefined, + rrule: getRepeatRrule() ?? null, + location: location.trim() || null, meta: { alert_minutes: alertMinutes } }); if (result) {