fix: hiding And connect with specific team members option for non org teams (#21083)

* fix: hiding And connect with specific team members option for non org teams

* removed console logs

* added comment

---------

Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com>
This commit is contained in:
Romit GabaniandTushar Bhatt authored and GitHub committed 2025-05-08 05:09:11 +00:00
1 parent 24a43877ce
commit 5f770a9789
1 file changed
+6 -1
@@ -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 &&