We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 852aca1 commit 5a71263Copy full SHA for 5a71263
packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/index.tsx
@@ -210,7 +210,11 @@ function TabsComponent(props: TabProps): React.JSX.Element {
210
export default function DiscriminatorTabs(props: TabProps): React.JSX.Element {
211
const isBrowser = useIsBrowser();
212
213
- if (!props.length) return <React.Fragment />;
+ if (
214
+ !props.children ||
215
+ (Array.isArray(props.children) && props.children.length === 0)
216
+ )
217
+ return <React.Fragment />;
218
219
return (
220
<TabsComponent
0 commit comments