Skip to content

Commit

Permalink
fix(tabs): 修复tabs组件list传空数组时的js报错 (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglianghan authored Jul 27, 2023
1 parent e3c1d2c commit f6130b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabs/TabNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface TabNavProps extends TdTabsProps, DragSortInnerProps {
const TabNav: React.FC<TabNavProps> = (props) => {
const {
placement = 'top',
itemList,
itemList = [],
tabClick = noop,
theme,
addable,
Expand Down

0 comments on commit f6130b1

Please sign in to comment.