diff --git a/config/router.config.js b/config/router.config.js index f1a17ba093b4f3379bca03d11fe13319f489b5ad..291d5d0f151117429b701c7cbf4a0ba1410760b0 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -42,7 +42,7 @@ module.exports = [ path: '/form/step-form', name: 'stepform', component: './Forms/StepForm', - hideChildren: true, + hideChildrenInMenu: true, routes: [ { path: '/form/step-form', diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index a05f4296a2402665b32303b47c0fc3c3b2b27d7e..e1849bf9d8e92778bbeedaafb3b6ba9793a9fde1 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent { * get SubMenu or Item */ getSubMenuOrItem = item => { - // doc: add hideChildren - if (item.children && !item.hideChildren && item.children.some(child => child.name)) { + // doc: add hideChildrenInMenu + if (item.children && !item.hideChildrenInMenu && item.children.some(child => child.name)) { const name = formatMessage({ id: item.locale }); return (