Skip to content

Commit

Permalink
Avoid var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Apr 1, 2022
1 parent 9291a5e commit f896aa3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ function Navigation( {
return;
}

const firstAndOnlyNavigationMenu = navigationMenus[ 0 ];

setRef( firstAndOnlyNavigationMenu.id );
setRef( navigationMenus[ 0 ].id );
}, [ navigationMenus ] );

const navRef = useRef();
Expand Down

0 comments on commit f896aa3

Please sign in to comment.