Merge pull request #31 from qfdk/fix-sidemenu

This commit is contained in:
DIYgod 2022-10-18 14:32:55 +01:00 committed by GitHub
commit efaaf013ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ function renderItems(items: TocResult["map"], activeId: string, prefix = "") {
}
>
{`${prefix}${index + 1}. ${
child.children[0].children?.[0]?.value
child.children[0].children?.[0]?.value ||
child.children[0].children?.[0]?.children?.[0]?.value
}`}
</Link>
)}