diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index fa3c92fd72d2..2767abf30d72 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -907,7 +907,8 @@ function fetchOrCreateChatReport(participants, shouldNavigate = true) { } // Merge report into Onyx - Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${data.reportID}`, {reportID: data.reportID}); + const simplifiedReportObject = getSimplifiedReportObject(data); + Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${data.reportID}`, simplifiedReportObject); if (shouldNavigate) { // Redirect the logged in person to the new report @@ -916,7 +917,7 @@ function fetchOrCreateChatReport(participants, shouldNavigate = true) { // We are returning an array with a report object here since fetchAllReports calls this method or // fetchChatReportsByIDs which returns an array of report objects. - return [getSimplifiedReportObject(data)]; + return [simplifiedReportObject]; }); }