diff --git a/packages/features/bookings/lib/handleCancelBooking.ts b/packages/features/bookings/lib/handleCancelBooking.ts index acbb03c994..cea53d5ed1 100644 --- a/packages/features/bookings/lib/handleCancelBooking.ts +++ b/packages/features/bookings/lib/handleCancelBooking.ts @@ -494,7 +494,7 @@ async function handler(req: CustomRequest) { bookingToDelete.user.credentials .filter((credential) => credential.type.endsWith("_video")) .forEach((credential) => { - const uidToDelete = bookingToDelete?.references?.[0].uid ?? bookingToDelete.uid; + const uidToDelete = bookingToDelete?.references?.[0]?.uid ?? bookingToDelete.uid; apiDeletes.push(deleteMeeting(credential, uidToDelete)); }); }