Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
DIYgod 2022-10-18 14:33:32 +01:00
commit 4b7ebbb36e
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>
)}