From 9492addd1d8abdb72aba057d5e9003b142a16ae2 Mon Sep 17 00:00:00 2001 From: ShH Y <74806550+1208nn@users.noreply.github.com> Date: Sat, 16 Dec 2023 09:18:48 +0800 Subject: [PATCH] Update getNotionConfig.js --- lib/notion/getNotionConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getNotionConfig.js b/lib/notion/getNotionConfig.js index 3da592c9..984b6eb7 100644 --- a/lib/notion/getNotionConfig.js +++ b/lib/notion/getNotionConfig.js @@ -123,7 +123,7 @@ export async function getConfigMapFromConfigPage(allPages) { if (properties) { // 将表格中的字段映射成 英文 const config = { - enable: properties['启用'] || properties.Enable === 'Yes', + enable: (properties['启用'] || properties.Enable) === 'Yes', key: properties['配置名'] || properties.Name, value: properties['配置值'] || properties.Value }