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>
This commit is contained in:
co-authored by
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Udit Takkar
parent
105a82f97d
commit
cf7430d531
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user