@@ -112,9 +112,6 @@ type ActionContentRouterProps = {
112112 /** Whether the report action is the "Created" action of a harvest-created expense report */
113113 isHarvestCreatedExpenseReport : boolean ;
114114
115- /** The originalID component of report name value pairs (used by the Created action of harvest reports) */
116- reportNameValuePairsOriginalID ?: string ;
117-
118115 /** Whether to show border for MoneyRequestReportPreviewContent */
119116 shouldShowBorder ?: boolean ;
120117
@@ -145,7 +142,6 @@ function ActionContentRouter({
145142 isReportArchived,
146143 isClosedExpenseReportWithNoExpenses,
147144 isHarvestCreatedExpenseReport,
148- reportNameValuePairsOriginalID,
149145 shouldShowBorder,
150146 isOnSearch,
151147 index,
@@ -156,6 +152,7 @@ function ActionContentRouter({
156152
157153 const actionReport = originalReport ?? report ;
158154 const actionReportID = originalReportID ?? reportID ;
155+ const policyID = report ?. policyID ;
159156
160157 if ( isIOURequestReportAction ( action ) ) {
161158 const moneyRequestOriginalMessage = isMoneyRequestAction ( action ) ? getOriginalMessage ( action ) : undefined ;
@@ -211,7 +208,7 @@ function ActionContentRouter({
211208 return (
212209 < MoneyRequestReportPreview
213210 iouReportID = { getIOUReportIDFromReportActionPreview ( action ) }
214- policyID = { report ?. policyID }
211+ policyID = { policyID }
215212 chatReportID = { reportID }
216213 action = { action }
217214 isHovered = { hovered }
@@ -232,7 +229,7 @@ function ActionContentRouter({
232229 chatReportID = { reportID }
233230 action = { action }
234231 isHovered = { hovered }
235- policyID = { report ?. policyID }
232+ policyID = { policyID }
236233 />
237234 ) ;
238235 }
@@ -257,7 +254,7 @@ function ActionContentRouter({
257254 return (
258255 < ModifiedExpenseContent
259256 action = { action }
260- report = { report }
257+ policyID = { policyID }
261258 originalReport = { originalReport }
262259 />
263260 ) ;
@@ -266,7 +263,7 @@ function ActionContentRouter({
266263 return (
267264 < ApprovalFlowContent
268265 action = { action }
269- policyID = { report ?. policyID }
266+ policyID = { policyID }
270267 reportID = { reportID }
271268 originalReport = { originalReport }
272269 />
@@ -276,7 +273,7 @@ function ActionContentRouter({
276273 return (
277274 < PaymentContent
278275 action = { action }
279- policyID = { report ?. policyID }
276+ policyID = { policyID }
280277 />
281278 ) ;
282279 }
@@ -311,7 +308,7 @@ function ActionContentRouter({
311308 return (
312309 < PolicyChangeLogContent
313310 action = { action }
314- policyID = { report ?. policyID }
311+ policyID = { policyID }
315312 />
316313 ) ;
317314 }
@@ -365,7 +362,7 @@ function ActionContentRouter({
365362 < JoinRequestContent
366363 action = { action }
367364 actionReportID = { actionReportID }
368- policyID = { report ?. policyID }
365+ policyID = { policyID }
369366 />
370367 ) ;
371368 }
@@ -406,7 +403,7 @@ function ActionContentRouter({
406403 return (
407404 < IssueCardMessage
408405 action = { action }
409- policyID = { report ?. policyID }
406+ policyID = { policyID }
410407 />
411408 ) ;
412409 }
@@ -428,7 +425,7 @@ function ActionContentRouter({
428425 return (
429426 < IntegrationSyncFailedMessage
430427 action = { action }
431- policyID = { report ?. policyID }
428+ policyID = { policyID }
432429 />
433430 ) ;
434431 }
@@ -447,7 +444,7 @@ function ActionContentRouter({
447444 ) ;
448445 }
449446 if ( isActionOfType ( action , CONST . REPORT . ACTIONS . TYPE . CREATED ) && isHarvestCreatedExpenseReport ) {
450- return < CreateHarvestReportAction reportNameValuePairsOriginalID = { reportNameValuePairsOriginalID } /> ;
447+ return < CreateHarvestReportAction reportID = { reportID } /> ;
451448 }
452449 if ( isActionOfType ( action , CONST . REPORT . ACTIONS . TYPE . CREATED_REPORT_FOR_UNAPPROVED_TRANSACTIONS ) ) {
453450 return < CreatedReportForUnapprovedTransactionsAction action = { action } /> ;
0 commit comments