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,