From 404c576d804d80c967c436981dd57410f7f0fe09 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 4 May 2025 11:53:14 +0200 Subject: [PATCH] notifications --- app/[section]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();