Skip to content

Commit

Permalink
Use correct resolution state
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Nov 2, 2022
1 parent 2752acf commit ecd728f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function Navigation( {

const {
hasResolvedNavigationMenus,
isResolvingNavigationMenus,
isNavigationMenuResolved,
isNavigationMenuMissing,
navigationMenus,
Expand Down Expand Up @@ -342,7 +343,7 @@ function Navigation( {
// - there is a ref attribute pointing to a Navigation Post
// - the Navigation Post isn't available (hasn't resolved) yet.
const isLoading =
! hasResolvedNavigationMenus ||
isResolvingNavigationMenus ||
isCreatingNavigationMenu ||
isConvertingClassicMenu ||
!! ( ref && ! isEntityAvailable && ! isConvertingClassicMenu );
Expand Down

0 comments on commit ecd728f

Please sign in to comment.