notifications
This commit is contained in:
parent
fabf267cc1
commit
404c576d80
@ -17,9 +17,9 @@ type PageProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default async function SectionPage({ params }: 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) {
|
if (!iframeUrl) {
|
||||||
notFound();
|
notFound();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user