fix: Missing Video Apps (#9927)

pull/9928/head
Hariom Balhara 2023-07-05 00:40:15 +05:30 committed by GitHub
parent 2f3cc03255
commit 08683a4883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import {
getHumanReadableLocationValue, getHumanReadableLocationValue,
getMessageForOrganizer, getMessageForOrganizer,
LocationType, LocationType,
OrganizerDefaultConferencingAppType,
} from "@calcom/app-store/locations"; } from "@calcom/app-store/locations";
import { useLocale } from "@calcom/lib/hooks/useLocale"; import { useLocale } from "@calcom/lib/hooks/useLocale";
import type { RouterOutputs } from "@calcom/trpc/react"; import type { RouterOutputs } from "@calcom/trpc/react";
@ -311,8 +312,15 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
query={locationsQuery} query={locationsQuery}
success={({ data }) => { success={({ data }) => {
if (!data.length) return null; if (!data.length) return null;
const locationOptions = [...data].filter((option) => { const locationOptions = [...data].map((option) => {
return !isTeamEvent ? option.label !== "Conferencing" : true; 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) { if (booking) {
locationOptions.map((location) => locationOptions.map((location) =>