improve calendar event creation

This commit is contained in:
Roland Schneider
2025-12-09 08:39:23 +01:00
parent c53c00e13c
commit fb31f0813a

View File

@@ -38,7 +38,7 @@ export class SingleEventDashboardEventActivation {
const eventId = this.event()?.id!; const eventId = this.event()?.id!;
const startTime = this.event()?.startTime!; const startTime = this.event()?.startTime!;
let payload: CreateExceptionDto | undefined = undefined; let payload: CreateExceptionDto | undefined = undefined;
const eventException = event?.exceptions ? event.exceptions[0] : undefined; const eventException = event?.exceptions?.length ? event.exceptions[0] : undefined;
if (eventException) { if (eventException) {
payload = { payload = {
...eventException, ...eventException,