wildcard page description default to null
This commit is contained in:
1 parent
e7de465e2c
commit
6aaeb7e048
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user