Skip to content

Commit cf7430d

Browse files
hariombalharadevin-ai-integration[bot]Udit-takkar
authored
fix: convert booking field label error to log.error to prevent booking failures (calcom#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>
1 parent 105a82f commit cf7430d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/features/bookings/lib/getCalEventResponses.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ export const getCalEventResponses = ({
6767
parsedBookingFields.forEach((field) => {
6868
const label = field.label || field.defaultLabel;
6969
if (!label) {
70-
//TODO: This error must be thrown while saving event-type as well so that such an event-type can't be saved
71-
throw new Error(`Missing label for booking field "${field.name}"`);
70+
//TODO: This error must be thrown while saving event-type so that such an event-type can't be saved
71+
log.error(`Missing label for booking field "${field.name}"`);
72+
return;
7273
}
7374

7475
if (field.name == "guests" && !!seatsEnabled) {

0 commit comments

Comments
 (0)