notifications

This commit is contained in:
alma 2025-05-04 11:53:14 +02:00
parent fabf267cc1
commit 404c576d80

View File

@ -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();