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:
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) {
|
||||
|
||||
Reference in new issue
Block a user