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