There was an error while loading. Please reload this page.
1 parent faed1ac commit 2e3e4e0Copy full SHA for 2e3e4e0
1 file changed
web/app/[locale]/(pages)/[...slug]/page.tsx
@@ -47,8 +47,7 @@ export default async function Page({ params }: Props) {
47
locale,
48
tags: ['page', 'event', 'landingPage', 'magazine', 'news', 'localNews'],
49
})
50
-
51
- if (!pageData) notFound()
+ if (Object.keys(pageData).length == 0) notFound()
52
53
const template = pageData?.template
54
if (!template || typeof template === 'undefined')
0 commit comments