From 78b1637a035d71099262412e5dee3e4d65c7fb2f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 28 May 2026 17:29:01 -0500 Subject: [PATCH] refac --- src/lib/apis/calendar/index.ts | 4 ++-- src/lib/components/calendar/CalendarEventModal.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/apis/calendar/index.ts b/src/lib/apis/calendar/index.ts index b3148e6c18..eb02b184d6 100644 --- a/src/lib/apis/calendar/index.ts +++ b/src/lib/apis/calendar/index.ts @@ -49,13 +49,13 @@ export type CalendarEventModel = { export type CalendarEventForm = { calendar_id: string; title: string; - description?: string; + description?: string | null; start_at: number; end_at?: number; all_day?: boolean; rrule?: string; color?: string; - location?: string; + location?: string | null; data?: Record; meta?: Record; attendees?: { user_id: string; status?: string }[]; diff --git a/src/lib/components/calendar/CalendarEventModal.svelte b/src/lib/components/calendar/CalendarEventModal.svelte index a5b05e1ab0..3ab37f866a 100644 --- a/src/lib/components/calendar/CalendarEventModal.svelte +++ b/src/lib/components/calendar/CalendarEventModal.svelte @@ -103,11 +103,11 @@ const result = await updateCalendarEvent(localStorage.token, event.id, { calendar_id: calendarId, title: title.trim(), - description: description.trim() || '', + description: description.trim() || null, start_at: startNs, end_at: endNs, all_day: allDay, - location: location.trim() || '', + location: location.trim() || null, meta: { alert_minutes: alertMinutes } }); if (result) {