Skip to content

Commit

Permalink
Normalize Nav block to function expressions for consistency (#42744)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Jul 29, 2022
1 parent 3c2ee63 commit ad4f2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit ad4f2a2

Please sign in to comment.