We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ada103 commit fd289cfCopy full SHA for fd289cf
packages/theme-nonepress/src/theme/MDXPage/index.tsx
@@ -31,7 +31,7 @@ export default function MDXPage(props: Props): JSX.Element {
31
const sidebarCustomProps = frontMatter.sidebar_custom_props as {
32
sidebar_id: string;
33
};
34
- const sidebarId = sidebarCustomProps?.sidebar_id || "";
+ const sidebarId = sidebarCustomProps?.sidebar_id;
35
36
return (
37
<HtmlClassNameProvider
@@ -48,7 +48,7 @@ export default function MDXPage(props: Props): JSX.Element {
48
toc={toc}
49
minHeadingLevel={tocMinHeadingLevel}
50
maxHeadingLevel={tocMaxHeadingLevel}
51
- hideTableOfContents={hideTableOfContents as unknown as boolean}
+ hideTableOfContents={!!hideTableOfContents}
52
/>
53
54
<Page
0 commit comments