File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,23 @@ function SearchTransactionsChangeReport() {
9999 } ) ;
100100
101101 const createReport = ( ) => {
102+ if ( ! policyForMovingExpensesID && ! shouldSelectPolicy && selectedTransactionsKeys . length > 0 ) {
103+ const firstTransactionID = selectedTransactionsKeys . at ( 0 ) ;
104+ if ( firstTransactionID ) {
105+ Navigation . navigate (
106+ ROUTES . MONEY_REQUEST_UPGRADE . getRoute ( {
107+ action : CONST . IOU . ACTION . EDIT ,
108+ iouType : CONST . IOU . TYPE . SUBMIT ,
109+ transactionID : firstTransactionID ,
110+ reportID : selectedTransactions [ firstTransactionID ] ?. reportID ,
111+ upgradePath : CONST . UPGRADE_PATHS . REPORTS ,
112+ } ) ,
113+ { forceReplace : true } ,
114+ ) ;
115+ }
116+ return ;
117+ }
118+
102119 if ( shouldSelectPolicy ) {
103120 Navigation . navigate ( ROUTES . NEW_REPORT_WORKSPACE_SELECTION . getRoute ( true ) ) ;
104121 return ;
You can’t perform that action at this time.
0 commit comments