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

This commit is contained in:
Hariom Balhara
2023-04-04 14:43:41 +00:00
committed by GitHub
parent f0e15d77dc
commit ba9688a04a
@@ -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">