From 0098b076a183b778f7d0658abcceb2e85b9d03cd Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Sat, 20 Dec 2025 20:54:56 +0530 Subject: [PATCH] fix: cache build error on CI (#25958) * fix(slots): hide out-of-office slots across timezones * update * fix build error --- apps/web/components/apps/AppPage.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/components/apps/AppPage.tsx b/apps/web/components/apps/AppPage.tsx index 0b90ee4f8e..948b472970 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["credentials"] - >([]); + type RouterOutput = inferRouterOutputs; + type Credentials = RouterOutput["viewer"]["apps"]["appCredentialsByType"]["credentials"]; + + const [existingCredentials, setExistingCredentials] = useState([]); /** * Marks whether the app is installed for all possible teams and the user.