From 289bfe48a9784c7077ea58d38e10b81d63450b91 Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Fri, 20 Dec 2019 07:52:43 -0500 Subject: [PATCH] use consistent type for defaults --- assets/js/base/components/tabs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/base/components/tabs/index.js b/assets/js/base/components/tabs/index.js index 330e872aff9..49c6f1b008e 100644 --- a/assets/js/base/components/tabs/index.js +++ b/assets/js/base/components/tabs/index.js @@ -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 ] );