File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ isOpen, onCl
90
90
< MenuLink isMainPath = { isMainPath } to = { menu . route_code } onClick = { handleClose } >
91
91
{ menu . name }
92
92
</ MenuLink >
93
- { ! R . isEmpty ( menu . children ) && (
93
+ { ! R . isEmpty ( menu . children ) && Object . values ( menu . children ) . some ( ( child ) => ! child . hide ) && (
94
94
< MenuArrowButton isMainPath = { isMainPath } onClick = { ( ) => navigateToDepth2 ( menu ) } >
95
95
< ArrowForward fontSize = "small" />
96
96
</ MenuArrowButton >
@@ -123,7 +123,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ isOpen, onCl
123
123
< Link to = { `${ navState . depth1 ! . route_code } /${ menu . route_code } ` } onClick = { handleClose } style = { { textDecoration : "none" } } >
124
124
< MenuChip isMainPath = { isMainPath } label = { menu . name } clickable />
125
125
</ Link >
126
- { ! R . isEmpty ( menu . children ) && (
126
+ { ! R . isEmpty ( menu . children ) && Object . values ( menu . children ) . some ( ( child ) => ! child . hide ) && (
127
127
< MenuArrowButton isMainPath = { isMainPath } onClick = { ( ) => navigateToDepth3 ( menu ) } >
128
128
< ArrowForward fontSize = "small" />
129
129
</ MenuArrowButton >
You can’t perform that action at this time.
0 commit comments