From 3030423cf229665a4ee75dbc6c6cc985fbe7e8c7 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 14 Mar 2022 12:42:58 +0800 Subject: [PATCH] =?UTF-8?q?forEach=E5=87=BD=E6=95=B0=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 0ce1263f..94990a8f 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -115,13 +115,13 @@ async function getCustomNav ({ notionPageData }) { function getTagOptions (schema) { if (!schema) return {} const tagSchema = Object.values(schema).find(e => e.name === 'tags') - return tagSchema?.options || {} + return tagSchema?.options || [] } function getCategoryOptions (schema) { if (!schema) return {} const categorySchema = Object.values(schema).find(e => e.name === 'category') - return categorySchema?.options || {} + return categorySchema?.options || [] } /**