Skip to content

Commit 0098b07

Browse files
authored
fix: cache build error on CI (calcom#25958)
* fix(slots): hide out-of-office slots across timezones * update * fix build error
1 parent 95a4567 commit 0098b07

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/web/components/apps/AppPage.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import { APP_NAME, COMPANY_NAME, SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calco
1515
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
1616
import { useLocale } from "@calcom/lib/hooks/useLocale";
1717
import { trpc } from "@calcom/trpc/react";
18+
import type { AppRouter } from "@calcom/trpc/types/server/routers/_app";
1819
import type { App as AppType } from "@calcom/types/App";
20+
import type { inferRouterOutputs } from "@trpc/server";
1921
import classNames from "@calcom/ui/classNames";
2022
import { Badge } from "@calcom/ui/components/badge";
2123
import { Button } from "@calcom/ui/components/button";
@@ -145,9 +147,10 @@ export const AppPage = ({
145147
useGrouping: false,
146148
}).format(price);
147149

148-
const [existingCredentials, setExistingCredentials] = useState<
149-
NonNullable<typeof appDbQuery.data>["credentials"]
150-
>([]);
150+
type RouterOutput = inferRouterOutputs<AppRouter>;
151+
type Credentials = RouterOutput["viewer"]["apps"]["appCredentialsByType"]["credentials"];
152+
153+
const [existingCredentials, setExistingCredentials] = useState<Credentials>([]);
151154

152155
/**
153156
* Marks whether the app is installed for all possible teams and the user.

0 commit comments

Comments
 (0)