Skip to content

Commit

Permalink
redirect only if disciplineId was selected directly and not when it i…
Browse files Browse the repository at this point in the history
…s set for changed productId

Adapted menu background color
  • Loading branch information
Bock4Soft committed Jul 1, 2024
1 parent 0857658 commit 4cbf083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ ul.sideMenu > li > ul > li > ul > li > div {

/* side background color like menu background color */
.ant-layout-sider-children {
background: #fafafa;
background: #f5f5f5;
}

.ant-layout-header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export function Content() {
}, [productId]);

useEffect(() => {
if (productDisciplineId) {
// redirect only if discipline was selected directly
if (productDisciplineId && !productId) {
redirectToFirstChildWithContent(productDisciplineId);
}

Expand Down

0 comments on commit 4cbf083

Please sign in to comment.