fix: 修复 eslint 报错

This commit is contained in:
LooseLi
2025-05-26 16:51:31 +08:00
parent e65df5aac3
commit 13235b6cdb

View File

@@ -267,12 +267,13 @@ async function convertNotionToSiteDate(pageId, from, pageRecordMap) {
categoryOptions: getCategoryOptions(schema) categoryOptions: getCategoryOptions(schema)
}) })
// 所有标签 // 所有标签
const tagSchemaOptions = getTagOptions(schema)
const tagOptions = const tagOptions =
getAllTags({ getAllTags({
allPages, allPages: allPages ?? [],
tagOptions: getTagOptions(schema), tagOptions: tagSchemaOptions ?? [],
NOTION_CONFIG NOTION_CONFIG
}) || null }) ?? null
// 旧的菜单 // 旧的菜单
const customNav = getCustomNav({ const customNav = getCustomNav({
allPages: collectionData.filter( allPages: collectionData.filter(