mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-19 19:22:28 +02:00
refactor: mark toc in loaded MDX as non-optional (#7524)
This commit is contained in:
parent
8b1acb50d1
commit
f443e992b9
11 changed files with 34 additions and 18 deletions
|
@ -77,9 +77,7 @@ function ChangelogPageContent(props: Props): JSX.Element {
|
|||
<BlogLayout
|
||||
sidebar={sidebar}
|
||||
toc={
|
||||
!hideTableOfContents &&
|
||||
BlogPostContents.toc &&
|
||||
BlogPostContents.toc.length > 0 ? (
|
||||
!hideTableOfContents && BlogPostContents.toc.length > 0 ? (
|
||||
<TOC
|
||||
toc={BlogPostContents.toc}
|
||||
minHeadingLevel={tocMinHeadingLevel}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue