docusaurus-theme-openapi-docs 4.3.6 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -238,7 +238,10 @@ function TabsComponent(props) {
|
|
|
238
238
|
}
|
|
239
239
|
function DiscriminatorTabs(props) {
|
|
240
240
|
const isBrowser = (0, useIsBrowser_1.default)();
|
|
241
|
-
if (
|
|
241
|
+
if (
|
|
242
|
+
!props.children ||
|
|
243
|
+
(Array.isArray(props.children) && props.children.length === 0)
|
|
244
|
+
)
|
|
242
245
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
243
246
|
return react_1.default.createElement(
|
|
244
247
|
TabsComponent,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/lodash": "^4.14.176",
|
|
37
37
|
"@types/pako": "^2.0.3",
|
|
38
38
|
"concurrently": "^5.2.0",
|
|
39
|
-
"docusaurus-plugin-openapi-docs": "^4.3.
|
|
39
|
+
"docusaurus-plugin-openapi-docs": "^4.3.7",
|
|
40
40
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
41
41
|
"eslint-plugin-prettier": "^5.0.1"
|
|
42
42
|
},
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=14"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e4d3ec4ebfb8415e97951076ce2f0901e8d88168"
|
|
83
83
|
}
|
|
@@ -210,7 +210,11 @@ function TabsComponent(props: TabProps): React.JSX.Element {
|
|
|
210
210
|
export default function DiscriminatorTabs(props: TabProps): React.JSX.Element {
|
|
211
211
|
const isBrowser = useIsBrowser();
|
|
212
212
|
|
|
213
|
-
if (
|
|
213
|
+
if (
|
|
214
|
+
!props.children ||
|
|
215
|
+
(Array.isArray(props.children) && props.children.length === 0)
|
|
216
|
+
)
|
|
217
|
+
return <React.Fragment />;
|
|
214
218
|
|
|
215
219
|
return (
|
|
216
220
|
<TabsComponent
|