File tree 2 files changed +2
-1
lines changed 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function SidePane() {
30
30
31
31
return {
32
32
route : substituteRouteParameters ( activeRoute , params ) ,
33
- isInNarrowPaneModal : state ?. routes ?. some ( ( r ) => r . name === NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) ,
33
+ isInNarrowPaneModal : state ?. routes . at ( - 1 ) ? .name === NAVIGATORS . RIGHT_MODAL_NAVIGATOR ,
34
34
} ;
35
35
} ) ;
36
36
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ function useSidePane() {
41
41
42
42
// The help button is hidden in production if the side pane nvp is not present or the language is unsupported.
43
43
const shouldHideOnProduction = isProduction && ( ! sidePaneNVP || isLanguageUnsupported ) ;
44
+
44
45
// The help button is also hidden if the side pane is displayed currently.
45
46
const shouldHideHelpButton = shouldHideOnProduction || ! isPaneHidden ;
46
47
You can’t perform that action at this time.
0 commit comments