Skip to content

Commit fb0b3b5

Browse files
authored
Merge pull request #1294 from lowcoder-org/feature/SideBar
Fixed serveral sidebar issue
2 parents 8ae6b32 + 7c33555 commit fb0b3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/components/layout/SideBarSection.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const SideBarSection = (props: SideBarSectionProps) => {
2424
const user = useSelector<AppState, User>(getUser);
2525
const applications = useSelector<AppState, ApplicationMeta[]>(normalAppListSelector);
2626
const currentPath = useLocation().pathname;
27-
27+
const isShow = props.items.map(item => item.visible ? item.visible({ user: user, applications: applications }) : true).includes(true);
2828
return (
29-
<Wrapper className={CNSidebarSection} style={props.style}>
29+
<Wrapper className={ isShow ? CNSidebarSection : ''} style={props.style}>
3030
{props.title}
3131
{props.items
3232
.filter((item) =>

0 commit comments

Comments
 (0)