fix: Missing Video Apps (#9927)
parent
2f3cc03255
commit
08683a4883
|
@ -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) =>
|
||||||
|
|
Loading…
Reference in New Issue