Skip to content

Commit 80bcfbe

Browse files
committed
Remove extra concierge CreateChatReport call
1 parent 226cb00 commit 80bcfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/actions/Report.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function fetchChatReportsByIDs(chatList, shouldRedirectIfInaccessible = false) {
414414

415415
// Fetch the personal details if there are any
416416
PersonalDetails.getFromReportParticipants(_.values(simplifiedReports));
417-
return fetchedReports;
417+
return simplifiedReports;
418418
})
419419
.catch((err) => {
420420
if (err.message !== CONST.REPORT.ERROR.INACCESSIBLE_REPORT) {
@@ -916,7 +916,7 @@ function fetchOrCreateChatReport(participants, shouldNavigate = true) {
916916

917917
// We are returning an array with a report object here since fetchAllReports calls this method or
918918
// fetchChatReportsByIDs which returns an array of report objects.
919-
return [data];
919+
return [getSimplifiedReportObject(data)];
920920
});
921921
}
922922

0 commit comments

Comments
 (0)