From 2e169801e8cd1996751230a5340933f1bb9efedc Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Tue, 18 Oct 2022 14:16:06 +0530 Subject: [PATCH] Hotfix: Installed Apps Tabs Switchi g (#5063) * Hotfix: metadata parsing * Use Router query as tabs use shallow routing, data-fetching doesnt occur on switching tabs Co-authored-by: zomars --- apps/web/pages/apps/installed/[category].tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/apps/installed/[category].tsx b/apps/web/pages/apps/installed/[category].tsx index fdd931a64b..8b535fe3c4 100644 --- a/apps/web/pages/apps/installed/[category].tsx +++ b/apps/web/pages/apps/installed/[category].tsx @@ -1,4 +1,5 @@ import { InferGetServerSidePropsType } from "next"; +import { useRouter } from "next/router"; import z from "zod"; import { AppSettings } from "@calcom/app-store/_components/AppSettings"; @@ -188,9 +189,10 @@ const querySchema = z.object({ category: z.nativeEnum(InstalledAppVariants), }); -export default function InstalledApps({ category }: InferGetServerSidePropsType) { +export default function InstalledApps() { const { t } = useLocale(); - + const router = useRouter(); + const category = router.query.category; return ( {(category === InstalledAppVariants.payment || category === InstalledAppVariants.conferencing) && (