diff --git a/src/app/gebetsanliegen-des-papstes/[year]/[month]/page.tsx b/src/app/gebetsanliegen-des-papstes/[year]/[month]/page.tsx index ac473f1..bb01bca 100644 --- a/src/app/gebetsanliegen-des-papstes/[year]/[month]/page.tsx +++ b/src/app/gebetsanliegen-des-papstes/[year]/[month]/page.tsx @@ -5,6 +5,7 @@ import { Title } from '@/components/Title/Title' import { P } from '@/components/Text/Paragraph' import { PageHeader } from '@/compositions/PageHeader/PageHeader' import { NextPrevButtons } from '@/components/NextPrevButtons/NextPrevButtons' +import { notFound } from 'next/navigation' const months: Record = { "01": "Januar", @@ -101,15 +102,7 @@ export default async function PrayerIntentionPage({ params }: { params: Promise< const monthString = getMonthAsString(month) if(!prayer) { - prayer = { - id: "dummy", - createdAt: "", - updatedAt: "", - month: "01", - year: 2025, - title: "Nicht gefunden", - prayer: "Gebetsanliegen nicht gefunden" - } + notFound(); } return (