Skip to content

Commit

Permalink
Merge pull request #24057 from j-piasecki/@jpiasecki/fix-report-actio…
Browse files Browse the repository at this point in the history
…n-item-memoization

Fix memoization of `ReportActionItem`
  • Loading branch information
pecanoro authored Aug 4, 2023
2 parents d4cd138 + afd5ddb commit 6730662
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,8 @@ export default compose(
lodashGet(prevProps.report, 'stateNum') === lodashGet(nextProps.report, 'stateNum') &&
prevProps.translate === nextProps.translate &&
// TaskReport's created actions render the TaskView, which updates depending on certain fields in the TaskReport
ReportUtils.isTaskReport(prevProps.report) &&
prevProps.action.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED &&
ReportUtils.isTaskReport(nextProps.report) &&
nextProps.action.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED &&
ReportUtils.isTaskReport(prevProps.report) === ReportUtils.isTaskReport(nextProps.report) &&
prevProps.action.actionName === nextProps.action.actionName &&
prevProps.report.reportName === nextProps.report.reportName &&
prevProps.report.description === nextProps.report.description &&
ReportUtils.isCompletedTaskReport(prevProps.report) === ReportUtils.isCompletedTaskReport(nextProps.report) &&
Expand Down

0 comments on commit 6730662

Please sign in to comment.