This commit is contained in:
DrMint 2022-04-15 17:42:31 +02:00
parent 8e734aa347
commit 1c023e6a01
1 changed files with 1 additions and 1 deletions

View File

@ -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",