fix build

This commit is contained in:
tangly1024
2023-07-30 14:41:48 +08:00
parent f1e68eb2b4
commit b4d1a1acc9

View File

@@ -12,7 +12,7 @@ const PageNavDrawer = (props) => {
const { pageNavVisible, changePageNavVisible } = useGitBookGlobal()
const { filteredNavPages } = props
const groupedArray = filteredNavPages.reduce((groups, item) => {
const groupedArray = filteredNavPages?.reduce((groups, item) => {
const categoryName = item?.category ? item?.category : '' // 将category转换为字符串
const lastGroup = groups[groups.length - 1] // 获取最后一个分组