From bac422effc379fb83bf7b27fa8bb1387b3ace1d1 Mon Sep 17 00:00:00 2001 From: Benno Tielen Date: Mon, 3 Feb 2025 09:11:11 +0100 Subject: [PATCH] fix: not found --- .../[year]/[month]/page.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 (