From 6aaeb7e048af92479fffc13e34082bc10ff1b9b6 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 24 Feb 2020 23:40:50 +0300 Subject: [PATCH] wildcard page description default to null --- pages/[...slug].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/[...slug].tsx b/pages/[...slug].tsx index 188eabd8..50e8b060 100644 --- a/pages/[...slug].tsx +++ b/pages/[...slug].tsx @@ -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