Skip to content

Commit

Permalink
Don't try to create navigation menus if there is a ref set
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 3, 2023
1 parent 2be042f commit 4fd95cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function Navigation( {

useEffect( () => {
if (
ref ||
! hasResolvedNavigationMenus ||
isConvertingClassicMenu ||
fallbackNavigationMenus?.length > 0
Expand Down

0 comments on commit 4fd95cb

Please sign in to comment.