We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 340d83f commit 594d766Copy full SHA for 594d766
packages/docusaurus-theme-openapi/src/theme/ApiItem/index.tsx
@@ -52,7 +52,6 @@ function ApiItem(props: typeof Props): JSX.Element {
52
next,
53
showExecuteButton,
54
showManualAuthentication,
55
- type,
56
} = metadata;
57
58
// We only add a title if:
@@ -64,10 +63,7 @@ function ApiItem(props: typeof Props): JSX.Element {
64
63
const windowSize = useWindowSize();
65
66
const canRenderTOC =
67
- !hideTableOfContents &&
68
- ApiContent.toc &&
69
- ApiContent.toc.length > 0 &&
70
- type !== "api";
+ !hideTableOfContents && ApiContent.toc && ApiContent.toc.length > 0;
71
72
const renderTocDesktop =
73
canRenderTOC && (windowSize === "desktop" || windowSize === "ssr");
0 commit comments