improve calendar event creation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user