Skip to content

Commit

Permalink
Merge pull request #8725 from thesahindia/thesahindia/fix-room-error
Browse files Browse the repository at this point in the history
Fix room creation error
  • Loading branch information
AndrewGable authored Apr 26, 2022
2 parents ddccd92 + c047096 commit 7632516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,8 @@ function createPolicyRoom(policyID, reportName, visibility) {
}
return fetchChatReportsByIDs([response.reportID]);
})
.then(([{reportID}]) => {
.then((chatReports) => {
const reportID = lodashGet(_.first(_.values(chatReports)), 'reportID', '');
if (!reportID) {
Log.error('Unable to grab policy room after creation', reportID);
return;
Expand Down

0 comments on commit 7632516

Please sign in to comment.