Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import * as API from '../API';
import CONST from '../../CONST';
import Log from '../Log';
import * as ReportUtils from '../reportUtils';
import * as OptionsListUtils from '../OptionsListUtils';
import Timers from '../Timers';
import * as ReportActions from './ReportActions';
import Growl from '../Growl';
Expand Down Expand Up @@ -1538,6 +1539,11 @@ function createPolicyRoom(policyID, reportName, visibility) {
Log.error('Unable to grab policy room after creation', reportID);
return;
}

// Make sure the report has its icons set
const report = allReports[reportID];
const icons = OptionsListUtils.getReportIcons(report, {});
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, {icons});
Navigation.navigate(ROUTES.getReportRoute(reportID));
})
.catch(() => {
Expand Down