Skip to content

Commit

Permalink
Hotfix: Installed Apps Tabs Switchi g (#5063) (#5064)
Browse files Browse the repository at this point in the history
* Hotfix: metadata parsing

* Use Router query as tabs use shallow routing, data-fetching doesnt occur on switching tabs

Co-authored-by: zomars <zomars@me.com>

Co-authored-by: zomars <zomars@me.com>
  • Loading branch information
hariombalhara and zomars committed Oct 18, 2022
1 parent 6e9849e commit 6efccfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/pages/apps/installed/[category].tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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) && (
Expand Down

1 comment on commit 6efccfe

@vercel
Copy link

@vercel vercel bot commented on 6efccfe Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cal – ./

cal-git-production-cal.vercel.app
app.calendso.com
app.cal.com
cal-cal.vercel.app

Please sign in to comment.