fix: not found
This commit is contained in:
parent
0c067f238b
commit
bac422effc
1 changed files with 2 additions and 9 deletions
|
|
@ -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 (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue