Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix switching Priority Mode with an active draft message from crashing app #7907

Merged
merged 11 commits into from
Mar 4, 2022
Merged
Next Next commit
fix crash
  • Loading branch information
Kosuke Tseng committed Feb 24, 2022
commit b9199e1c41d9d0540d28c4dff4235ded9f137f4b
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
@@ -167,7 +167,7 @@ class SidebarLinks extends React.Component {
const recentReports = SidebarLinks.getRecentReports(nextProps);
const orderedReports = shouldReorder
? recentReports
: _.map(prevState.orderedReports,
: _.filter(prevState.orderedReports,
orderedReport => _.chain(recentReports)
.filter(recentReport => orderedReport.reportID === recentReport.reportID)
.first()