diff --git a/packages/block-library/src/navigation/edit/index.js b/packages/block-library/src/navigation/edit/index.js index 9276e5b28f6dd..4a1b5c2b19a91 100644 --- a/packages/block-library/src/navigation/edit/index.js +++ b/packages/block-library/src/navigation/edit/index.js @@ -389,10 +389,10 @@ function Navigation( { name: 'block-library/core/navigation/classic-menu-conversion/error', } ); - function handleUpdateMenu( menuId ) { + const handleUpdateMenu = ( menuId ) => { setRef( menuId ); selectBlock( clientId ); - } + }; useEffect( () => { if ( classicMenuConversionStatus === CLASSIC_MENU_CONVERSION_PENDING ) {