Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
SomayChauhan committed May 7, 2024
1 parent b2b335f commit 5dcad4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion apps/web/components/eventtype/EventSetupTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ export const EventSetupTab = (
isManagedEventType={isManagedEventType}
disableLocationProp={shouldLockDisableProps("locations").disabled}
showAppStoreLink={true}
parentFormMethods={formMethods}
{...props}
/>
)}
Expand Down
9 changes: 4 additions & 5 deletions apps/web/pages/apps/installation/[[...step]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import useAddAppMutation from "@calcom/app-store/_utils/useAddAppMutation";
import { appStoreMetadata } from "@calcom/app-store/appStoreMetaData";
import { getLocationGroupedOptions } from "@calcom/app-store/server";
import type { EventTypeAppSettingsComponentProps, EventTypeModel } from "@calcom/app-store/types";
import { defaultVideoAppCategories } from "@calcom/app-store/utils";
import { isConfrencing as isAppConfrencing } from "@calcom/app-store/utils";
import { getLocale } from "@calcom/features/auth/lib/getLocale";
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
import { AppOnboardingSteps } from "@calcom/lib/apps/appOnboardingSteps";
Expand All @@ -23,7 +23,7 @@ import { CAL_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { getTranslation } from "@calcom/lib/server";
import prisma from "@calcom/prisma";
import { SchedulingType, type AppCategories } from "@calcom/prisma/enums";
import { SchedulingType } from "@calcom/prisma/enums";
import type { EventTypeMetaDataSchema } from "@calcom/prisma/zod-utils";
import { trpc } from "@calcom/trpc/react";
import type { AppMeta } from "@calcom/types/App";
Expand Down Expand Up @@ -447,9 +447,8 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
const app = await getAppBySlug(parsedAppSlug);
const appMetadata = appStoreMetadata[app.dirName as keyof typeof appStoreMetadata];
const exteandsEventType = appMetadata?.extendsFeature === "EventType";
const isConferencing = appMetadata.categories.some((category) =>
defaultVideoAppCategories.includes(category as AppCategories)
);
const isConferencing = isAppConfrencing(appMetadata.categories);

const showEventTypesStep = exteandsEventType || isConferencing;

if (!session?.user?.id) throw new Error(ERROR_MESSAGES.userNotAuthed);
Expand Down

0 comments on commit 5dcad4f

Please sign in to comment.