From 50842262cba8da4f3e3c01e87ff57fbcf5bc2c21 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 28 Feb 2022 12:36:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 5ff2918b..4873cf9c 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -91,7 +91,7 @@ async function getCustomNav ({ notionPageData }) { const customNav = [] if (allPage && allPage.length > 0) { allPage.forEach(p => { - customNav.push({ icon: p.icon, name: p.title, to: '/' + p.slug, show: true }) + customNav.push({ icon: p.icon || null, name: p.title, to: '/' + p.slug, show: true }) }) } return customNav