We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ae6b32 + 7c33555 commit fb0b3b5Copy full SHA for fb0b3b5
client/packages/lowcoder/src/components/layout/SideBarSection.tsx
@@ -24,9 +24,9 @@ export const SideBarSection = (props: SideBarSectionProps) => {
24
const user = useSelector<AppState, User>(getUser);
25
const applications = useSelector<AppState, ApplicationMeta[]>(normalAppListSelector);
26
const currentPath = useLocation().pathname;
27
-
+ const isShow = props.items.map(item => item.visible ? item.visible({ user: user, applications: applications }) : true).includes(true);
28
return (
29
- <Wrapper className={CNSidebarSection} style={props.style}>
+ <Wrapper className={ isShow ? CNSidebarSection : ''} style={props.style}>
30
{props.title}
31
{props.items
32
.filter((item) =>
0 commit comments