Scheduling infrastructure for absolutely everyone.
Fixing Ghost Input (#2161)
sean-brydonf9f856d7ea9e
diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsxindex fbbd1b808b9..4d3414aaad5 100644--- a/apps/web/pages/event-types/[type].tsx+++ b/apps/web/pages/event-types/[type].tsx@@ -660,7 +660,12 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {<div className="flex"><buttontype="button"- onClick={() => openLocationModal(location.type)}+ onClick={() => {+ locationFormMethods.setValue("locationType", location.type);+ locationFormMethods.unregister("locationLink");+ locationFormMethods.unregister("locationAddress");+ openLocationModal(location.type);+ }}className="mr-1 p-1 text-gray-500 hover:text-gray-900"><PencilIcon className="h-4 w-4" /></button>@@ -1610,6 +1615,8 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {onChange={(val) => {if (val) {locationFormMethods.setValue("locationType", val.value);+ locationFormMethods.unregister("locationLink");+ locationFormMethods.unregister("locationAddress");setSelectedLocation(val);}}}