mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
fix: edit a repeating event's series instead of moving its start to the clicked occurrence (#30971)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import {
|
||||
getCalendars,
|
||||
getCalendarEvents,
|
||||
getCalendarEventById,
|
||||
deleteCalendar,
|
||||
type CalendarModel,
|
||||
type CalendarEventModel
|
||||
@@ -134,7 +135,7 @@
|
||||
showEventModal = true;
|
||||
}
|
||||
|
||||
function handleEventClick(e: CustomEvent<CalendarEventModel>) {
|
||||
async function handleEventClick(e: CustomEvent<CalendarEventModel>) {
|
||||
const evt = e.detail;
|
||||
if (evt.meta?.automation_id) {
|
||||
if (evt.meta?.chat_id) {
|
||||
@@ -144,7 +145,9 @@
|
||||
}
|
||||
return;
|
||||
}
|
||||
editEvent = evt;
|
||||
editEvent = evt.instance_id
|
||||
? ((await getCalendarEventById(localStorage.token, evt.id)) ?? evt)
|
||||
: evt;
|
||||
defaultStartAt = null;
|
||||
showEventModal = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user