Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9424e commit 7c33555Copy full SHA for 7c33555
‎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