wildcard page description default to null

This commit is contained in:
tmshv committed 2020-02-24 23:40:50 +03:00
1 parent e7de465e2c
commit 6aaeb7e048
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ export const unstable_getStaticProps = async (ctx: any) => {
if (!page) {
throw new Error(`Not found: ${slug}`)
}
const description = page.description ?? ''
const description = page.description ?? null
const breadcrumbSize = page.breadcrumb?.length ?? 0
const breadcrumb = breadcrumbSize < 2 ? null : page.breadcrumb