fix create check for managed events (#14165)

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2024-03-21 15:05:52 +04:00
1 parent 0df68cce3b
commit b4c62b3c43
1 file changed
+1 -4
@@ -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}