Skip to content

Commit

Permalink
rerender report actions on writeCapability change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Aug 5, 2023
1 parent 4230f28 commit 8cd29e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ function arePropsEqual(oldProps, newProps) {
return false;
}

if (lodashGet(newProps, 'report.writeCapability') !== lodashGet(oldProps, 'report.writeCapability')) {
return false;
}

return _.isEqual(lodashGet(newProps.report, 'icons', []), lodashGet(oldProps.report, 'icons', []));
}

Expand Down

0 comments on commit 8cd29e6

Please sign in to comment.