Skip to content

Commit

Permalink
adjust call settings
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 10, 2024
1 parent dd89172 commit 04c2e8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/volto/src/components/theme/Sitemap/Sitemap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ function Sitemap(props) {

Sitemap.propTypes = {
getNavigation: PropTypes.func.isRequired,
location: PropTypes.object.isRequired,
intl: PropTypes.object.isRequired,
items: PropTypes.array.isRequired,
navroot: PropTypes.object.isRequired,
};

export const __test__ = compose(
Expand Down Expand Up @@ -107,9 +105,11 @@ export default compose(
promise: ({ location, store: { dispatch, getState } }) => {
if (!__SERVER__) return;
const navroot = getState().navroot.data?.navroot?.['@id'];
const { settings } = config;
return dispatch(
getNavigation(expandToBackendURL(navroot), settings.siteMapDepth),
getNavigation(
expandToBackendURL(navroot),
config.settings.siteMapDepth,
),
);
},
},
Expand Down

0 comments on commit 04c2e8c

Please sign in to comment.