File tree Expand file tree Collapse file tree
src/components/WideRHPContextProvider
useShowSuperWideRHPVersion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function useShowSuperWideRHPVersion(condition: boolean) {
2828 removeWideRHPRouteKey ( route ) ;
2929 removeSuperWideRHPRouteKey ( route ) ;
3030 // When the RHP has been closed, expandedRHPProgress should be set to 0.
31- if ( navigationRef . getRootState ( ) . routes . at ( - 1 ) ?. name !== NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) {
31+ if ( navigationRef ? .getRootState ( ) ? .routes ? .at ( - 1 ) ?. name !== NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) {
3232 expandedRHPProgress . setValue ( 0 ) ;
3333 }
3434 } , [ removeSuperWideRHPRouteKey , removeWideRHPRouteKey , route ] ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function useShowWideRHPVersion(condition: boolean) {
1919 const onWideRHPClose = useCallback ( ( ) => {
2020 removeWideRHPRouteKey ( route ) ;
2121 // When the RHP has been closed, expandedRHPProgress should be set to 0.
22- if ( navigationRef . getRootState ( ) . routes . at ( - 1 ) ?. name !== NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) {
22+ if ( navigationRef ? .getRootState ( ) ? .routes ? .at ( - 1 ) ?. name !== NAVIGATORS . RIGHT_MODAL_NAVIGATOR ) {
2323 expandedRHPProgress . setValue ( 0 ) ;
2424 }
2525 } , [ removeWideRHPRouteKey , route ] ) ;
You can’t perform that action at this time.
0 commit comments