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 <[email protected]>
This commit is contained in:
Hariom Balharaandzomars authored and GitHub committed 2022-10-18 08:46:06 +00:00
1 parent d0d793a719
commit 2e169801e8
1 file changed
+4 -2
+4 -2
View File
@@ -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<typeof getServerSideProps>) {
export default function InstalledApps() {
const { t } = useLocale();
const router = useRouter();
const category = router.query.category;
return (
<InstalledAppsLayout heading={t("installed_apps")} subtitle={t("manage_your_connected_apps")}>
{(category === InstalledAppVariants.payment || category === InstalledAppVariants.conferencing) && (