Skip to content

Commit 9ac7e43

Browse files
authored
Fix not showing dev tab when props is an empty array (#3612)
1 parent 2a40f34 commit 9ac7e43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docuilib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-docs",
3-
"version": "3.7.0",
3+
"version": "3.8.0",
44
"main": "./src/index.ts",
55
"scripts": {
66
"docusaurus": "docusaurus",

docuilib/src/components/ComponentPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function ComponentPage({component}) {
6161
const buildTabs = () => {
6262
const tabs = component.docs?.tabs;
6363
const api = component.props;
64-
const tabsArray = api ? [...tabs, devTab] : tabs;
64+
const tabsArray = !_.isEmpty(api) ? [...tabs, devTab] : tabs;
6565

6666
// TODO: align Tabs bottom border with TabItem's selected indication line
6767
if (tabs) {

0 commit comments

Comments
 (0)