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
9090 < MenuLink isMainPath = { isMainPath } to = { menu . route_code } onClick = { handleClose } >
9191 { menu . name }
9292 </ MenuLink >
93- { ! R . isEmpty ( menu . children ) && (
93+ { ! R . isEmpty ( menu . children ) && Object . values ( menu . children ) . some ( ( child ) => ! child . hide ) && (
9494 < MenuArrowButton isMainPath = { isMainPath } onClick = { ( ) => navigateToDepth2 ( menu ) } >
9595 < ArrowForward fontSize = "small" />
9696 </ MenuArrowButton >
@@ -123,7 +123,7 @@ export const MobileNavigation: React.FC<MobileNavigationProps> = ({ isOpen, onCl
123123 < Link to = { `${ navState . depth1 ! . route_code } /${ menu . route_code } ` } onClick = { handleClose } style = { { textDecoration : "none" } } >
124124 < MenuChip isMainPath = { isMainPath } label = { menu . name } clickable />
125125 </ Link >
126- { ! R . isEmpty ( menu . children ) && (
126+ { ! R . isEmpty ( menu . children ) && Object . values ( menu . children ) . some ( ( child ) => ! child . hide ) && (
127127 < MenuArrowButton isMainPath = { isMainPath } onClick = { ( ) => navigateToDepth3 ( menu ) } >
128128 < ArrowForward fontSize = "small" />
129129 </ MenuArrowButton >
You can’t perform that action at this time.
0 commit comments