From 27dd191332bfe0614835e8b6a1396c836dc9e328 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sat, 19 Sep 2026 17:17:43 -0400 Subject: [PATCH] fix: let a calendar event's repeat, description and location be cleared again (#30204) --- src/lib/apis/calendar/index.ts | 2 +- src/lib/components/calendar/CalendarEventModal.svelte | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {