Skip to content

Commit 2e3e4e0

Browse files
committed
Fix 404 #3462
1 parent faed1ac commit 2e3e4e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • web/app/[locale]/(pages)/[...slug]

web/app/[locale]/(pages)/[...slug]/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export default async function Page({ params }: Props) {
4747
locale,
4848
tags: ['page', 'event', 'landingPage', 'magazine', 'news', 'localNews'],
4949
})
50-
51-
if (!pageData) notFound()
50+
if (Object.keys(pageData).length == 0) notFound()
5251

5352
const template = pageData?.template
5453
if (!template || typeof template === 'undefined')

0 commit comments

Comments
 (0)