From cf7430d531aa9571ea40d126cb4ac64d2d9676fb Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 19 Nov 2025 19:00:46 +0530 Subject: [PATCH] fix: convert booking field label error to log.error to prevent booking failures (#25062) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- packages/features/bookings/lib/getCalEventResponses.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/features/bookings/lib/getCalEventResponses.ts b/packages/features/bookings/lib/getCalEventResponses.ts index a34e9dc91b..7700149e6a 100644 --- a/packages/features/bookings/lib/getCalEventResponses.ts +++ b/packages/features/bookings/lib/getCalEventResponses.ts @@ -67,8 +67,9 @@ export const getCalEventResponses = ({ parsedBookingFields.forEach((field) => { const label = field.label || field.defaultLabel; if (!label) { - //TODO: This error must be thrown while saving event-type as well so that such an event-type can't be saved - throw new Error(`Missing label for booking field "${field.name}"`); + //TODO: This error must be thrown while saving event-type so that such an event-type can't be saved + log.error(`Missing label for booking field "${field.name}"`); + return; } if (field.name == "guests" && !!seatsEnabled) {