mirror of
https://github.com/zadam/trilium.git
synced 2026-01-11 17:14:26 +01:00
fix(toc): unnecessary <ol> when no children
This commit is contained in:
parent
ae4a3f10ae
commit
8cff591746
@ -115,7 +115,7 @@ function TableOfContentsHeading({ heading, scrollToHeading, activeHeadingId }: {
|
||||
html={heading.text}
|
||||
/>
|
||||
</li>
|
||||
{heading.children && (
|
||||
{heading.children.length > 0 && (
|
||||
<ol>
|
||||
{heading.children.map(heading => <TableOfContentsHeading key={heading.id} heading={heading} scrollToHeading={scrollToHeading} activeHeadingId={activeHeadingId} />)}
|
||||
</ol>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user