diff --git a/packages/tabs/src/tabs.tsx b/packages/tabs/src/tabs.tsx index e8cbf6b90..549077c8e 100644 --- a/packages/tabs/src/tabs.tsx +++ b/packages/tabs/src/tabs.tsx @@ -61,9 +61,7 @@ export const Tabs = forwardRef((props, ref) => { return getTabItems(children as ReactElement) }, [children]) - const [curTabItems, setCurTabItems] = useState( - [...tabItems] ?? [], - ) + const [curTabItems, setCurTabItems] = useState(tabItems) const firstTabKey = useMemo(() => { return curTabItems[0]?.key?.toString() }, [curTabItems])