diff --git a/src/actions/index.js b/src/actions/index.js index e1b6a35e..e56facb9 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -4,6 +4,7 @@ import { export function setSectionTabs(payload) { + console.log('in action', payload) return { type: SET_SECTION_TABS, payload: payload, diff --git a/src/components/theme/View/TabsChildView.jsx b/src/components/theme/View/TabsChildView.jsx index 51abc713..d2c8b4e9 100644 --- a/src/components/theme/View/TabsChildView.jsx +++ b/src/components/theme/View/TabsChildView.jsx @@ -86,13 +86,17 @@ class DefaultView extends Component { const blocksFieldname = getBlocksFieldname(content); const blocksLayoutFieldname = getBlocksLayoutFieldname(content); const tabs = this.computeFolderTabs(content['@components'].siblings); - console.log('section tabs', this.props.sectionTabs) + const sectionTabs = this.props.sectionTabs?.items + console.log('sectionTabs in child', sectionTabs) + return ( hasBlocksData(content) && ( -
- {tabs && tabs.length ? ( -