Scheduling infrastructure for absolutely everyone.
fix create check for managed events (#14165)
Syed Ali Shahbazb4c62b3c43f4
diff --git a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx b/packages/features/eventtypes/components/CreateEventTypeDialog.tsxindex 8521494189a..2b350f2240d 100644--- a/packages/features/eventtypes/components/CreateEventTypeDialog.tsx+++ b/packages/features/eventtypes/components/CreateEventTypeDialog.tsx@@ -7,7 +7,6 @@ import { z } from "zod";import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";import { classNames } from "@calcom/lib";-import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";import { useLocale } from "@calcom/lib/hooks/useLocale";import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery";import { HttpError } from "@calcom/lib/http-error";@@ -91,8 +90,6 @@ export default function CreateEventTypeDialog({} = useTypedQuery(querySchema);const teamProfile = profileOptions.find((profile) => profile.teamId === teamId);- const isSelfHosted = !HOSTED_CAL_FEATURES;- const isEE = !!(isSelfHosted || isOrganization);const form = useForm<z.infer<typeof createEventTypeInput>>({defaultValues: {length: 15,@@ -288,7 +285,7 @@ export default function CreateEventTypeDialog({<p>{t("round_robin_description")}</p></RadioArea.Item><>- {isAdmin && isEE && (+ {isAdmin && (<RadioArea.Item{...register("schedulingType")}value={SchedulingType.MANAGED}