Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
use consistent type for defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Dec 20, 2019
1 parent 1dfdb4a commit 289bfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/base/components/tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Tabs = ( {
useEffect( () => {
if ( ! selected ) {
setSelected(
initialTabName || ( tabs.length > 0 ? tabs[ 0 ].name : null )
initialTabName || ( tabs.length > 0 ? tabs[ 0 ].name : '' )
);
}
}, [ initialTabName, tabs ] );
Expand Down

0 comments on commit 289bfe4

Please sign in to comment.