diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index c5e5f7e4..d8121f7b 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -17,9 +17,9 @@ type PageProps = { }; export default async function SectionPage({ params }: PageProps) { - const sectionSlug = String(await params?.section || ''); + const section = params?.section ? String(params.section) : ''; - const iframeUrl = menuItems[sectionSlug as keyof typeof menuItems]; + const iframeUrl = menuItems[section as keyof typeof menuItems]; if (!iframeUrl) { notFound();