mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-26 17:30:27 -04:00
fix: let a calendar event's repeat, description and location be cleared again (#30204)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user