Scheduling infrastructure for absolutely everyone.
fix: hiding And connect with specific team members option for non org teams (#21083)
Romit Gabani5f770a9789a8
diff --git a/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx b/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsxindex 9d3c1e90fe0..ccd06bf80a0 100644--- a/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx+++ b/packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx@@ -11,6 +11,7 @@ import type { UseFormReturn } from "react-hook-form";import { Toaster } from "sonner";import type { z } from "zod";+import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";import { areTheySiblingEntitites } from "@calcom/lib/entityPermissionUtils";import { useLocale } from "@calcom/lib/hooks/useLocale";import { buildEmptyQueryValue, raqbQueryValueUtils } from "@calcom/lib/raqb/raqbUtils";@@ -385,6 +386,9 @@ const Route = ({const { eventOptions } = buildEventsData({ eventTypesByGroup, form, route });+ const orgBranding = useOrgBranding();+ const isOrganization = !!orgBranding;+// /team/{TEAM_SLUG}/{EVENT_SLUG} -> /team/{TEAM_SLUG}const eventTypePrefix =eventOptions.length !== 0@@ -554,7 +558,8 @@ const Route = ({: null;const attributesQueryBuilder =- route.action?.type === RouteActionType.EventTypeRedirectUrl && isTeamForm ? (+ // team member attributes are only available for organization teams+ route.action?.type === RouteActionType.EventTypeRedirectUrl && isTeamForm && isOrganization ? (<div className="mt-4">{/* TODO: */}{eventTypeRedirectUrlSelectedOption?.eventTypeAppMetadata &&