Skip to content

Commit

Permalink
Navigation Editor: Fix menu location assignment (#31594)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 10, 2021
1 parent ee8b5a3 commit 7552888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/hooks/use-menu-locations.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function useMenuLocations() {

setMenuLocationsByName( newMenuLocationsByName );

const activeMenuId = oldMenuId || newMenuId;
const activeMenuId = newMenuId || oldMenuId;
editMenuEntityRecord( ...menuEntityData, {
locations: locationsForMenuId(
newMenuLocationsByName,
Expand Down

0 comments on commit 7552888

Please sign in to comment.