Scheduling infrastructure for absolutely everyone.
chore: don't show parent managed eventType as event redirectionoption (#17993)
Anik Dhabal Babu3dff77fe599d
diff --git a/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx b/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsxindex 5ad1bb57054..d3f6935295d 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;