diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 12484f9a5d6e..971300748348 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -2873,7 +2873,7 @@ function buildNewReportOptimisticData( { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${parentReport?.reportID}`, - value: {lastVisibleActionCreated: optimisticReportPreview.created, iouReportID: reportID, ...outstandingChildRequest}, + value: {iouReportID: reportID, ...outstandingChildRequest}, }, { onyxMethod: Onyx.METHOD.MERGE, @@ -2919,7 +2919,7 @@ function buildNewReportOptimisticData( { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${parentReport?.reportID}`, - value: {lastVisibleActionCreated: parentReport?.lastVisibleActionCreated, hasOutstandingChildRequest: parentReport?.hasOutstandingChildRequest}, + value: {hasOutstandingChildRequest: parentReport?.hasOutstandingChildRequest}, }, ]; diff --git a/tests/actions/ReportTest.ts b/tests/actions/ReportTest.ts index 2e5b744f181d..9c9e8e34e44f 100644 --- a/tests/actions/ReportTest.ts +++ b/tests/actions/ReportTest.ts @@ -1779,7 +1779,6 @@ describe('actions/Report', () => { const parentPolicyExpenseChat = reports?.[`${ONYXKEYS.COLLECTION.REPORT}${parentReport?.reportID}`]; // assert correctness of crucial onyx data expect(createdReport?.reportID).toBe(reportID); - expect(parentPolicyExpenseChat?.lastVisibleActionCreated).toBe(reportPreviewAction?.created); expect(parentPolicyExpenseChat?.hasOutstandingChildRequest).toBe(true); expect(createdReport?.total).toBe(0); expect(createdReport?.parentReportActionID).toBe(reportPreviewAction?.reportActionID);