From ba9688a04a8398c9a8332ee7061bfae2f2efd524 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Tue, 4 Apr 2023 20:13:41 +0530 Subject: [PATCH] BugFix: Don't open location dialog on removing location (#8085) --- apps/web/components/eventtype/EventSetupTab.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsx index 16bd13a4c2..42cfa49088 100644 --- a/apps/web/components/eventtype/EventSetupTab.tsx +++ b/apps/web/components/eventtype/EventSetupTab.tsx @@ -229,14 +229,6 @@ export const EventSetupTab = ( return (
  • { - 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">