Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
add navDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Dec 8, 2021
1 parent 505922f commit 5e8e4aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/theme/CatalogueViews/AppHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
getDefaultHeaderImage,
} from '@eeacms/volto-forests-theme/actions';
import { getPortlets } from '@eeacms/volto-addons-forest/actions';
import config from '@plone/volto/registry';

class App extends Component {
static propTypes = {
Expand Down Expand Up @@ -178,7 +179,13 @@ export default compose(
{
key: 'navigation',
promise: ({ location, store: { dispatch } }) =>
__SERVER__ && dispatch(getNavigation(getBaseUrl(location.pathname))),
__SERVER__ &&
dispatch(
getNavigation(
getBaseUrl(location.pathname),
config.settings.navDepth,
),
),
},
{
key: 'types',
Expand Down

0 comments on commit 5e8e4aa

Please sign in to comment.