fix: edit a repeating event's series instead of moving its start to the clicked occurrence (#30971)

This commit is contained in:
G30 2026-09-30 12:07:37 -04:00 • committed by GitHub
parent b857eb8267
commit 101cdb6f78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}