Skip to content

Scheduling infrastructure for absolutely everyone.

BugFix: Don't open location dialog on removing location (#8085)

Hariom Balharaba9688a04a83
diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx
index 16bd13a4c2d..42cfa490881 100644
--- a/apps/web/components/eventtype/EventSetupTab.tsx
+++ b/apps/web/components/eventtype/EventSetupTab.tsx
@@ -229,14 +229,6 @@ export const EventSetupTab = (
return (
<li
- onClick={() => {
- locationFormMethods.setValue("locationType", location.type);
- locationFormMethods.unregister("locationLink");
- locationFormMethods.unregister("locationAddress");
- locationFormMethods.unregister("locationPhoneNumber");
- setEditingLocationType(location.type);
- openLocationModal(location.type);
- }}
key={`${location.type}${index}`}
className="mb-2 rounded-md border border-gray-300 py-1.5 px-2 hover:cursor-pointer">
<div className="flex items-center justify-between">