This commit is contained in:
DrMint 2022-05-28 19:31:41 +02:00
parent ae1d1d735e
commit 8b6abd6379
1 changed files with 4 additions and 1 deletions

View File

@ -361,7 +361,10 @@ export async function getStaticProps(
language_code: context.locale ?? "en", 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 }; return { notFound: true };
} }
const props: Props = { const props: Props = {