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 <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-11-19 13:30:46 +00:00
1 parent 105a82f97d
commit cf7430d531
1 file changed
+3 -2
@@ -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) {