From 101cdb6f78cc7977c8f13411c4e3681cfbf9292c Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 30 Sep 2026 12:07:37 -0400 Subject: [PATCH] fix: edit a repeating event's series instead of moving its start to the clicked occurrence (#30971) --- src/routes/(app)/calendar/+page.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/calendar/+page.svelte b/src/routes/(app)/calendar/+page.svelte index b057c3a77d..bcc32b3bd0 100644 --- a/src/routes/(app)/calendar/+page.svelte +++ b/src/routes/(app)/calendar/+page.svelte @@ -6,6 +6,7 @@ import { getCalendars, getCalendarEvents, + getCalendarEventById, deleteCalendar, type CalendarModel, type CalendarEventModel @@ -134,7 +135,7 @@ showEventModal = true; } - function handleEventClick(e: CustomEvent) { + async function handleEventClick(e: CustomEvent) { 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; }