We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 867966d commit 1392a47Copy full SHA for 1392a47
1 file changed
packages/features/bookings/lib/handleCancelBooking.ts
@@ -494,7 +494,7 @@ async function handler(req: CustomRequest) {
494
bookingToDelete.user.credentials
495
.filter((credential) => credential.type.endsWith("_video"))
496
.forEach((credential) => {
497
- const uidToDelete = bookingToDelete?.references?.[0].uid ?? bookingToDelete.uid;
+ const uidToDelete = bookingToDelete?.references?.[0]?.uid ?? bookingToDelete.uid;
498
apiDeletes.push(deleteMeeting(credential, uidToDelete));
499
});
500
}
0 commit comments