Skip to content

Commit 594d766

Browse files
committed
Respect hideTableOfContents
1 parent 340d83f commit 594d766

File tree

1 file changed

+1
-5
lines changed
  • packages/docusaurus-theme-openapi/src/theme/ApiItem

1 file changed

+1
-5
lines changed

packages/docusaurus-theme-openapi/src/theme/ApiItem/index.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function ApiItem(props: typeof Props): JSX.Element {
5252
next,
5353
showExecuteButton,
5454
showManualAuthentication,
55-
type,
5655
} = metadata;
5756

5857
// We only add a title if:
@@ -64,10 +63,7 @@ function ApiItem(props: typeof Props): JSX.Element {
6463
const windowSize = useWindowSize();
6564

6665
const canRenderTOC =
67-
!hideTableOfContents &&
68-
ApiContent.toc &&
69-
ApiContent.toc.length > 0 &&
70-
type !== "api";
66+
!hideTableOfContents && ApiContent.toc && ApiContent.toc.length > 0;
7167

7268
const renderTocDesktop =
7369
canRenderTOC && (windowSize === "desktop" || windowSize === "ssr");

0 commit comments

Comments
 (0)