Skip to content

Commit 05ef2e8

Browse files
fixed
1 parent 323c445 commit 05ef2e8

File tree

1 file changed

+5
-6
lines changed
  • src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu

1 file changed

+5
-6
lines changed

src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
// import { matchPath } from 'react-router-dom';
1717

1818
export const Menu: React.FC = () => {
19-
2019
const stackComponentsTypes: any[] = useSelector(
2120
stackComponentSelectors.stackComponentTypes,
2221
);
@@ -39,9 +38,7 @@ export const Menu: React.FC = () => {
3938
/>
4039
<MenuItem
4140
id="runs"
42-
Icon={() => (
43-
<icons.run color={iconColors.white} size={iconSizes.md} />
44-
)}
41+
Icon={() => <icons.run color={iconColors.white} size={iconSizes.md} />}
4542
to={routePaths.pipelines.allRuns(selectedWorkspace)}
4643
isActive={() => window.location.href?.includes('all-runs')}
4744
text={'Runs'}
@@ -67,7 +64,10 @@ export const Menu: React.FC = () => {
6764
innerItem={window.location.href?.includes('stacks')}
6865
// to={routePaths.stacks.base}
6966
text={translate('menu.stacks.text')}
70-
isActive={() => window.location.href?.includes('stacks')}
67+
isActive={() =>
68+
window.location.href?.includes('stacks') &&
69+
!window.location.href?.includes('components')
70+
}
7171
to={routePaths.stacks.list(selectedWorkspace)}
7272
/>
7373

@@ -95,7 +95,6 @@ export const Menu: React.FC = () => {
9595
);
9696
};
9797

98-
9998
// {locationPath.includes('components') &&
10099
// stackComponentsTypes?.map((item: any) => (
101100
// <MenuItem

0 commit comments

Comments
 (0)