@@ -177,6 +177,7 @@ function MoneyRequestView({
177177 // When this component is used when merging from the search page, we might not have the parent report stored in the main collection
178178 let [ parentReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ parentReportID } ` , { canBeMissing : true } ) ;
179179 parentReport = parentReport ?? currentSearchResults ?. data [ `${ ONYXKEYS . COLLECTION . REPORT } ${ parentReportID } ` ] ;
180+ const [ parentReportNextStep ] = useOnyx ( `${ ONYXKEYS . COLLECTION . NEXT_STEP } ${ getNonEmptyStringOnyxID ( parentReport ?. reportID ) } ` , { canBeMissing : true } ) ;
180181
181182 const parentReportActionSelector = ( reportActions : OnyxEntry < OnyxTypes . ReportActions > ) =>
182183 transactionThreadReport ?. parentReportActionID ? reportActions ?. [ transactionThreadReport . parentReportActionID ] : undefined ;
@@ -444,37 +445,39 @@ function MoneyRequestView({
444445 if ( newBillable === getBillable ( transaction ) || ! transaction ?. transactionID || ! transactionThreadReport ?. reportID ) {
445446 return ;
446447 }
447- updateMoneyRequestBillable (
448- transaction . transactionID ,
448+ updateMoneyRequestBillable ( {
449+ transactionID : transaction . transactionID ,
449450 transactionThreadReport,
450451 parentReport,
451- newBillable ,
452+ value : newBillable ,
452453 policy,
453454 policyTagList,
454455 policyCategories,
455456 currentUserAccountIDParam,
456457 currentUserEmailParam,
457458 isASAPSubmitBetaEnabled,
458- ) ;
459+ parentReportNextStep,
460+ } ) ;
459461 } ;
460462
461463 const saveReimbursable = ( newReimbursable : boolean ) => {
462464 // If the value hasn't changed, don't request to save changes on the server and just close the modal
463465 if ( newReimbursable === getReimbursable ( transaction ) || ! transaction ?. transactionID || ! transactionThreadReport ?. reportID ) {
464466 return ;
465467 }
466- updateMoneyRequestReimbursable (
467- transaction . transactionID ,
468+ updateMoneyRequestReimbursable ( {
469+ transactionID : transaction . transactionID ,
468470 transactionThreadReport,
469471 parentReport,
470- newReimbursable ,
472+ value : newReimbursable ,
471473 policy,
472474 policyTagList,
473475 policyCategories,
474476 currentUserAccountIDParam,
475477 currentUserEmailParam,
476478 isASAPSubmitBetaEnabled,
477- ) ;
479+ parentReportNextStep,
480+ } ) ;
478481 } ;
479482
480483 if ( isManagedCardTransaction ) {
0 commit comments