fix: let a calendar event's repeat, description and location be cleared again (#30204)

This commit is contained in:
G30
2026-09-19 17:17:43 -04:00
committed by GitHub
parent 757ee8132e
commit 27dd191332
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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<string, any>;
@@ -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) {