From 3dff77fe599d188d0eec1faebbb47e6dfec33549 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:08:52 +0530 Subject: [PATCH] chore: don't show parent managed eventType as event redirectionoption (#17993) --- .../routing-forms/pages/route-builder/[...appPages].tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx b/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx index 5ad1bb5705..d3f6935295 100644 --- a/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx +++ b/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx @@ -13,7 +13,7 @@ import { areTheySiblingEntitites } from "@calcom/lib/entityPermissionUtils"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { buildEmptyQueryValue } from "@calcom/lib/raqb/raqbUtils"; import type { App_RoutingForms_Form } from "@calcom/prisma/client"; -import type { SchedulingType } from "@calcom/prisma/client"; +import { SchedulingType } from "@calcom/prisma/client"; import type { RouterOutputs } from "@calcom/trpc/react"; import { trpc } from "@calcom/trpc/react"; import type { inferSSRProps } from "@calcom/types/inferSSRProps"; @@ -167,6 +167,9 @@ const buildEventsData = ({ }); group.eventTypes.forEach((eventType) => { + if (eventType.teamId && eventType.schedulingType === SchedulingType.MANAGED) { + return; + } const uniqueSlug = `${group.profile.slug}/${eventType.slug}`; const isRouteAlreadyInUse = isRouter(route) ? false : uniqueSlug === route.action.value;