Skip to content

Commit

Permalink
Update packages/components/src/tab-panel/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Lena Morita <lena@jaguchi.com>
  • Loading branch information
chad1008 and mirka authored Oct 24, 2022
1 parent de66efe commit b67db69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/components/src/tab-panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ export function TabPanel( {
useEffect( () => {
if ( ! selectedTab?.name && tabs.length > 0 ) {
handleTabSelection( initialTabName || tabs[ 0 ].name );
setSelected(
initialTabName ||
( tabs.length > 0 ? tabs[ 0 ].name : undefined )
);
}
}, [ tabs, selectedTab?.name, initialTabName ] );

Expand Down

0 comments on commit b67db69

Please sign in to comment.