mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: let a calendar event's repeat, description and location be cleared again (#30204)
This commit is contained in:
parent
757ee8132e
commit
27dd191332
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue