diff --git a/app/projekty/[slug]/page.tsx b/app/projekty/[slug]/page.tsx index ee02ba8..9155d41 100644 --- a/app/projekty/[slug]/page.tsx +++ b/app/projekty/[slug]/page.tsx @@ -47,12 +47,13 @@ async function getPostData(slug: string) { export interface PageProps { params: { - slug: string; + slug: string | Promise; }; } export default async function Page({ params }: PageProps) { - const content = await getPostData(params.slug); + const slug = await params.slug; // Vyřeší případný Promise + const content = await getPostData(slug); if (content == null) { return notFound();