diff --git a/packages/amis/src/renderers/App.tsx b/packages/amis/src/renderers/App.tsx index 8ffbcb71b..5acbed370 100644 --- a/packages/amis/src/renderers/App.tsx +++ b/packages/amis/src/renderers/App.tsx @@ -365,8 +365,7 @@ export default class App extends React.Component { if ( !subHeader && link.children && - link.children.filter((item: {visible: boolean}) => item?.visible) - .length + link.children.some((item: {visible: boolean}) => item?.visible) ) { children.push(