Skip to content

Commit

Permalink
Merge pull request #1294 from lowcoder-org/feature/SideBar
Browse files Browse the repository at this point in the history
Fixed serveral sidebar issue
  • Loading branch information
FalkWolsky authored Nov 11, 2024
2 parents 8ae6b32 + 7c33555 commit fb0b3b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const SideBarSection = (props: SideBarSectionProps) => {
const user = useSelector<AppState, User>(getUser);
const applications = useSelector<AppState, ApplicationMeta[]>(normalAppListSelector);
const currentPath = useLocation().pathname;

const isShow = props.items.map(item => item.visible ? item.visible({ user: user, applications: applications }) : true).includes(true);
return (
<Wrapper className={CNSidebarSection} style={props.style}>
<Wrapper className={ isShow ? CNSidebarSection : ''} style={props.style}>
{props.title}
{props.items
.filter((item) =>
Expand Down

0 comments on commit fb0b3b5

Please sign in to comment.