fix: not found

This commit is contained in:
Benno Tielen 2025-02-03 09:11:11 +01:00
parent 0c067f238b
commit bac422effc

View file

@ -5,6 +5,7 @@ import { Title } from '@/components/Title/Title'
import { P } from '@/components/Text/Paragraph' import { P } from '@/components/Text/Paragraph'
import { PageHeader } from '@/compositions/PageHeader/PageHeader' import { PageHeader } from '@/compositions/PageHeader/PageHeader'
import { NextPrevButtons } from '@/components/NextPrevButtons/NextPrevButtons' import { NextPrevButtons } from '@/components/NextPrevButtons/NextPrevButtons'
import { notFound } from 'next/navigation'
const months: Record<string, string> = { const months: Record<string, string> = {
"01": "Januar", "01": "Januar",
@ -101,15 +102,7 @@ export default async function PrayerIntentionPage({ params }: { params: Promise<
const monthString = getMonthAsString(month) const monthString = getMonthAsString(month)
if(!prayer) { if(!prayer) {
prayer = { notFound();
id: "dummy",
createdAt: "",
updatedAt: "",
month: "01",
year: 2025,
title: "Nicht gefunden",
prayer: "Gebetsanliegen nicht gefunden"
}
} }
return ( return (