diff --git a/apps/web/components/eventtype/Locations.tsx b/apps/web/components/eventtype/Locations.tsx index 159d5fc608..eebf5302e0 100644 --- a/apps/web/components/eventtype/Locations.tsx +++ b/apps/web/components/eventtype/Locations.tsx @@ -243,6 +243,10 @@ const Locations: React.FC = ({ eventLocationType.organizerInputType || !validLocations?.find((location) => location.type === newLocationType); + const shouldUpdateLink = + eventLocationType?.organizerInputType === "text" && + eventLocationType.defaultValueVariable === "link"; + if (canAddLocation) { updateLocationField(index, { type: newLocationType, @@ -250,6 +254,9 @@ const Locations: React.FC = ({ credentialId: e.credentialId, teamName: e.teamName ?? undefined, }), + ...(shouldUpdateLink && { + link: "", + }), }); } else { updateLocationField(index, {