diff --git a/src/components/Blocks/ContextNavigation/ContextNavigationView.jsx b/src/components/Blocks/ContextNavigation/ContextNavigationView.jsx index d6b1124..ce0a146 100644 --- a/src/components/Blocks/ContextNavigation/ContextNavigationView.jsx +++ b/src/components/Blocks/ContextNavigation/ContextNavigationView.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import { injectIntl } from 'react-intl'; import { flattenToAppURL, withBlockExtensions } from '@plone/volto/helpers'; import DefaultTemplate from './variations/Default'; @@ -9,8 +8,7 @@ const ContextNavigationView = (props = {}) => { const root_path = data?.root_node?.[0]?.['@id']; if (root_path) navProps['root_path'] = flattenToAppURL(root_path); const Renderer = variation?.view ?? DefaultTemplate; - delete navProps.variation; - return Renderer ? : ''; + return ; }; -export default injectIntl(withBlockExtensions(ContextNavigationView)); +export default withBlockExtensions(ContextNavigationView);