From 5e8e4aae20b122fdf36b327cc7d87154b30e1504 Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Wed, 8 Dec 2021 22:58:23 +0530 Subject: [PATCH] add navDepth --- src/components/theme/CatalogueViews/AppHeader.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/theme/CatalogueViews/AppHeader.jsx b/src/components/theme/CatalogueViews/AppHeader.jsx index 7ce8a55..6d74a3d 100644 --- a/src/components/theme/CatalogueViews/AppHeader.jsx +++ b/src/components/theme/CatalogueViews/AppHeader.jsx @@ -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 = { @@ -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',