From fb31f0813af9a77ce9e74f475742d2bdb145510a Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 9 Dec 2025 08:39:23 +0100 Subject: [PATCH] improve calendar event creation --- .../single-event-dashboard-event-activation.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/app/features/calendar/components/calendar-view/single-event-dashboard-event-activation/single-event-dashboard-event-activation.component.ts b/admin/src/app/features/calendar/components/calendar-view/single-event-dashboard-event-activation/single-event-dashboard-event-activation.component.ts index e4238f7..9508434 100644 --- a/admin/src/app/features/calendar/components/calendar-view/single-event-dashboard-event-activation/single-event-dashboard-event-activation.component.ts +++ b/admin/src/app/features/calendar/components/calendar-view/single-event-dashboard-event-activation/single-event-dashboard-event-activation.component.ts @@ -38,7 +38,7 @@ export class SingleEventDashboardEventActivation { const eventId = this.event()?.id!; const startTime = this.event()?.startTime!; let payload: CreateExceptionDto | undefined = undefined; - const eventException = event?.exceptions ? event.exceptions[0] : undefined; + const eventException = event?.exceptions?.length ? event.exceptions[0] : undefined; if (eventException) { payload = { ...eventException,