mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
forEach函数异常
This commit is contained in:
@@ -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 || []
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user