Skip to content

Commit

Permalink
Merge pull request #8427 from mollfpr/fix-8033
Browse files Browse the repository at this point in the history
fix linkedWorkspace find policy null
  • Loading branch information
marcochavezf authored Apr 1, 2022
2 parents 50496a0 + abdc6c5 commit 088dfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ReportSettingsPage extends Component {
const shouldShowRoomName = !ReportUtils.isPolicyExpenseChat(this.props.report);
const shouldDisableRename = ReportUtils.isDefaultRoom(this.props.report)
|| ReportUtils.isArchivedRoom(this.props.report);
const linkedWorkspace = _.find(this.props.policies, policy => policy.id === this.props.report.policyID);
const linkedWorkspace = _.find(this.props.policies, policy => policy && policy.id === this.props.report.policyID);

return (
<ScreenWrapper>
Expand Down

0 comments on commit 088dfbb

Please sign in to comment.