From ebab3b701d2d1c72be3e49840570690947ce0133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Wed, 31 Jul 2024 13:16:45 -0700 Subject: [PATCH] revert: "fix: meeting link is not updated and broken ui in edit location dialog" (#16011) --- apps/web/components/dialog/EditLocationDialog.tsx | 2 +- .../server/routers/viewer/bookings/editLocation.handler.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index 989bd71ac7..1c52f5d018 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -261,7 +261,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { {booking && ( <>

{t("current_location")}:

-

+

{getHumanReadableLocationValue(booking.location, t)}

diff --git a/packages/trpc/server/routers/viewer/bookings/editLocation.handler.ts b/packages/trpc/server/routers/viewer/bookings/editLocation.handler.ts index b7684b7f20..636f49a35f 100644 --- a/packages/trpc/server/routers/viewer/bookings/editLocation.handler.ts +++ b/packages/trpc/server/routers/viewer/bookings/editLocation.handler.ts @@ -118,12 +118,6 @@ export const editLocationHandler = async ({ ctx, input }: EditLocationOptions) = }, data: { location, - metadata: location.startsWith("http") - ? { - ...(typeof booking.metadata === "object" ? booking.metadata : {}), - videoCallUrl: location, - } - : {}, references: { create: updatedResult.referencesToCreate, },