@@ -80,7 +80,6 @@ import Log from '@libs/Log';
8080import { isEmailPublicDomain } from '@libs/LoginUtils' ;
8181import { getMovedReportID } from '@libs/ModifiedExpenseMessage' ;
8282import createDynamicRoute from '@libs/Navigation/helpers/dynamicRoutesUtils/createDynamicRoute' ;
83- import isSearchTopmostFullScreenRoute from '@libs/Navigation/helpers/isSearchTopmostFullScreenRoute' ;
8483import type { LinkToOptions } from '@libs/Navigation/helpers/linkTo/types' ;
8584import Navigation from '@libs/Navigation/Navigation' ;
8685import enhanceParameters from '@libs/Network/enhanceParameters' ;
@@ -2374,11 +2373,7 @@ function navigateToAndOpenChildReport(
23742373) {
23752374 const report = childReport ?? createChildReport ( childReport , parentReportAction , parentReport , currentUserAccountID , introSelected , betas , isSelfTourViewed , personalDetails ) ;
23762375
2377- if ( isSearchTopmostFullScreenRoute ( ) ) {
2378- Navigation . navigate ( ROUTES . SEARCH_REPORT . getRoute ( { reportID : report . reportID , backTo : Navigation . getActiveRoute ( ) } ) ) ;
2379- } else {
2380- Navigation . navigate ( ROUTES . REPORT_WITH_ID . getRoute ( report . reportID , undefined , undefined , Navigation . getActiveRoute ( ) ) ) ;
2381- }
2376+ Navigation . navigate ( ROUTES . REPORT_WITH_ID . getRoute ( report . reportID , undefined , undefined , Navigation . getActiveRoute ( ) ) ) ;
23822377}
23832378
23842379/**
@@ -2471,11 +2466,7 @@ function explain(
24712466 // Check if explanation thread report already exists
24722467 const report = childReport ?? createChildReport ( childReport , reportAction , originalReport , currentUserAccountID , introSelected , betas , isSelfTourViewed ) ;
24732468
2474- if ( isSearchTopmostFullScreenRoute ( ) ) {
2475- Navigation . navigate ( ROUTES . SEARCH_REPORT . getRoute ( { reportID : report . reportID , backTo : Navigation . getActiveRoute ( ) } ) ) ;
2476- } else {
2477- Navigation . navigate ( ROUTES . REPORT_WITH_ID . getRoute ( report . reportID , undefined , undefined , Navigation . getActiveRoute ( ) ) ) ;
2478- }
2469+ Navigation . navigate ( ROUTES . REPORT_WITH_ID . getRoute ( report . reportID , undefined , undefined , Navigation . getActiveRoute ( ) ) ) ;
24792470 // Schedule adding the explanation comment on the next animation frame
24802471 // so it runs immediately after navigation completes.
24812472 requestAnimationFrame ( ( ) => {
0 commit comments