From 1c023e6a0156c48b66e8aa0afa78c2e59e896286 Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 15 Apr 2022 17:42:31 +0200 Subject: [PATCH] Hotfix --- src/pages/contents/[slug]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx index 7693ad2..1859ce0 100644 --- a/src/pages/contents/[slug]/index.tsx +++ b/src/pages/contents/[slug]/index.tsx @@ -307,7 +307,7 @@ export async function getStaticProps( context: GetStaticPropsContext ): Promise<{ notFound: boolean } | { props: Props }> { const sdk = getReadySdk(); - const slug = context.params?.slug.toString() ?? ""; + const slug = context.params?.slug?.toString() ?? ""; const content = await sdk.getContentText({ slug: slug, language_code: context.locale ?? "en",