From 08683a4883041958d16a6a45342ac80e823bdcd3 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 5 Jul 2023 00:40:15 +0530 Subject: [PATCH] fix: Missing Video Apps (#9927) --- apps/web/components/dialog/EditLocationDialog.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index c8c3c5913f..24f1a4aaca 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -13,6 +13,7 @@ import { getHumanReadableLocationValue, getMessageForOrganizer, LocationType, + OrganizerDefaultConferencingAppType, } from "@calcom/app-store/locations"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { RouterOutputs } from "@calcom/trpc/react"; @@ -311,8 +312,15 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { query={locationsQuery} success={({ data }) => { if (!data.length) return null; - const locationOptions = [...data].filter((option) => { - return !isTeamEvent ? option.label !== "Conferencing" : true; + const locationOptions = [...data].map((option) => { + if (isTeamEvent) { + // Let host's Default conferencing App option show for Team Event + return option; + } + return { + ...option, + options: option.options.filter((o) => o.value !== OrganizerDefaultConferencingAppType), + }; }); if (booking) { locationOptions.map((location) =>