diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx index b14e954..b85f84b 100644 --- a/src/pages/contents/[slug]/index.tsx +++ b/src/pages/contents/[slug]/index.tsx @@ -361,7 +361,10 @@ export async function getStaticProps( language_code: context.locale ?? "en", }); - if (!content.contents || !content.contents.data[0]?.attributes?.translations) { + if ( + !content.contents || + !content.contents.data[0]?.attributes?.translations + ) { return { notFound: true }; } const props: Props = {