diff --git a/packages/edit-navigation/src/hooks/use-menu-locations.js b/packages/edit-navigation/src/hooks/use-menu-locations.js index 9879db10689184..1b9b50a456efc0 100644 --- a/packages/edit-navigation/src/hooks/use-menu-locations.js +++ b/packages/edit-navigation/src/hooks/use-menu-locations.js @@ -51,7 +51,7 @@ export default function useMenuLocations() { setMenuLocationsByName( newMenuLocationsByName ); - const activeMenuId = oldMenuId || newMenuId; + const activeMenuId = newMenuId || oldMenuId; editMenuEntityRecord( ...menuEntityData, { locations: locationsForMenuId( newMenuLocationsByName,