From 8b6abd6379bb95bdca2d91e145c7ad33d1cbf30c Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 28 May 2022 19:31:41 +0200 Subject: [PATCH] Prettier --- src/pages/contents/[slug]/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = {