Skip to content

Scheduling infrastructure for absolutely everyone.

fix: cache build error on CI (#25958)

Anik Dhabal Babu0098b076a183
diff --git a/apps/web/components/apps/AppPage.tsx b/apps/web/components/apps/AppPage.tsx
index 0b90ee4f8ec..948b472970a 100644
--- a/apps/web/components/apps/AppPage.tsx
+++ b/apps/web/components/apps/AppPage.tsx
@@ -15,7 +15,9 @@ import { APP_NAME, COMPANY_NAME, SUPPORT_MAIL_ADDRESS, WEBAPP_URL } from "@calco
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
+import type { AppRouter } from "@calcom/trpc/types/server/routers/_app";
import type { App as AppType } from "@calcom/types/App";
+import type { inferRouterOutputs } from "@trpc/server";
import classNames from "@calcom/ui/classNames";
import { Badge } from "@calcom/ui/components/badge";
import { Button } from "@calcom/ui/components/button";
@@ -145,9 +147,10 @@ export const AppPage = ({
useGrouping: false,
}).format(price);
- const [existingCredentials, setExistingCredentials] = useState<
- NonNullable<typeof appDbQuery.data>["credentials"]
- >([]);
+ type RouterOutput = inferRouterOutputs<AppRouter>;
+ type Credentials = RouterOutput["viewer"]["apps"]["appCredentialsByType"]["credentials"];
+
+ const [existingCredentials, setExistingCredentials] = useState<Credentials>([]);
/**
* Marks whether the app is installed for all possible teams and the user.