diff --git a/packages/components/src/navigation/context.js b/packages/components/src/navigation/context.js index 4d3fbc13797436..5f47fd9b48d812 100644 --- a/packages/components/src/navigation/context.js +++ b/packages/components/src/navigation/context.js @@ -29,7 +29,7 @@ export const NavigationContext = createContext( { getMenu: noop, addMenu: noop, removeMenu: noop, - directSubMenus: {}, + childMenu: {}, traverseMenu: noop, isMenuEmpty: noop, }, diff --git a/packages/components/src/navigation/use-create-navigation-tree.js b/packages/components/src/navigation/use-create-navigation-tree.js index 66877522e4f48d..1db7ba9c94938d 100644 --- a/packages/components/src/navigation/use-create-navigation-tree.js +++ b/packages/components/src/navigation/use-create-navigation-tree.js @@ -88,7 +88,7 @@ export const useCreateNavigationTree = () => { addMenu( key, value ); }, removeMenu, - directSubMenus: childMenu, + childMenu, traverseMenu, isMenuEmpty, };