diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx index 1a754d3e6f..8be7c1bf18 100644 --- a/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx +++ b/packages/features/bookings/Booker/components/BookEventForm/BookingFields.tsx @@ -105,7 +105,6 @@ export const BookingFields = ({ optionInput.placeholder = option.inputPlaceholder; } }); - field.options = options.filter( (location): location is NonNullable<(typeof options)[number]> => !!location ); diff --git a/packages/features/form-builder/Components.tsx b/packages/features/form-builder/Components.tsx index b16723d0e9..51b06b62bb 100644 --- a/packages/features/form-builder/Components.tsx +++ b/packages/features/form-builder/Components.tsx @@ -397,6 +397,21 @@ export const Components: Record = { }, [options, setValue, value]); const { t } = useLocale(); + + const getCleanLabel = (option: { label: string; value: string }): string | JSX.Element => { + if (!option.label) { + return ""; + } + + return option.label.search(/^https?:\/\//) !== -1 ? ( + + {option.label} + + ) : ( + option.label + ); + }; + return (
@@ -419,7 +434,7 @@ export const Components: Record = { }} checked={value?.value === option.value} /> - {option.label ?? ""} + {getCleanLabel(option) ?? ""} {option.value === "phone" && (