From 3600db5133a18ab59994fac2e7adbd8751d57554 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Thu, 1 Feb 2024 23:43:31 +0000 Subject: [PATCH] Merge pull request #35598 from mkhutornyi/fix-35574 [CP Staging] fix assignee is not updated immediately (cherry picked from commit beb54b595d064229ace49c76a8ae8e6a1ec15fea) --- src/pages/home/ReportScreen.js | 1 + src/pages/home/report/ReportActionsView.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index da1ad3426c2f..056cbfd1e4e9 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -659,6 +659,7 @@ export default compose( prevProps.userLeavingStatus === nextProps.userLeavingStatus && prevProps.report.reportID === nextProps.report.reportID && prevProps.report.policyID === nextProps.report.policyID && + prevProps.report.managerID === nextProps.report.managerID && prevProps.report.isOptimisticReport === nextProps.report.isOptimisticReport && prevProps.report.statusNum === nextProps.report.statusNum && _.isEqual(prevProps.report.pendingFields, nextProps.report.pendingFields) && diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 7e6a6a0b95ff..e50dcbb99f6b 100755 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -318,6 +318,7 @@ function arePropsEqual(oldProps, newProps) { oldProps.report.lastReadTime === newProps.report.lastReadTime && oldProps.report.reportID === newProps.report.reportID && oldProps.report.policyID === newProps.report.policyID && + oldProps.report.managerID === newProps.report.managerID && oldProps.report.lastVisibleActionCreated === newProps.report.lastVisibleActionCreated && oldProps.report.isOptimisticReport === newProps.report.isOptimisticReport && _.isEqual(oldProps.report.pendingFields, newProps.report.pendingFields)