Skip to content

Commit

Permalink
Merge pull request #4139 from Expensify/marcaaron-reportStuff
Browse files Browse the repository at this point in the history
Stop call to Get&rvl=reportStuff with reportID = undefined
  • Loading branch information
Luke9389 authored Jul 19, 2021
2 parents 4749488 + 8f543ba commit b91a878
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,13 @@ function fetchChatReportsByIDs(chatList, shouldRedirectIfInacessible = false) {
}

return fetchIOUReportID(participants[0])
.then(iouReportID => fetchIOUReport(iouReportID, chatReport.reportID));
.then((iouReportID) => {
if (!iouReportID) {
return Promise.resolve();
}

return fetchIOUReport(iouReportID, chatReport.reportID);
});
}));
})
.then((iouReportObjects) => {
Expand Down

0 comments on commit b91a878

Please sign in to comment.