Scheduling infrastructure for absolutely everyone.
fix: convert booking field label error to log.error to prevent booking failures (#25062)
Hariom Balharacf7430d531aa
diff --git a/packages/features/bookings/lib/getCalEventResponses.ts b/packages/features/bookings/lib/getCalEventResponses.tsindex a34e9dc91bc..7700149e6ac 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) {