From 3b148467c3c39d0eb7cc9bb0b8e9828672adeaca Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 3 Nov 2022 20:36:10 -0600 Subject: [PATCH] Merge pull request #12460 from Expensify/Rory-FixWorkspaceRBR Add errors object back to menu item, remove unused isPolicy (cherry picked from commit e275d4f86d9809187309cd58ac5d18cb3eb0d9ed) --- src/pages/workspace/WorkspacesListPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspacesListPage.js b/src/pages/workspace/WorkspacesListPage.js index 577d01599b02..e75bfe2dead8 100755 --- a/src/pages/workspace/WorkspacesListPage.js +++ b/src/pages/workspace/WorkspacesListPage.js @@ -126,7 +126,7 @@ class WorkspacesListPage extends Component { fallbackIcon: Expensicons.FallbackWorkspaceAvatar, brickRoadIndicator: PolicyUtils.getPolicyBrickRoadIndicatorStatus(policy, this.props.policyMembers), pendingAction: policy.pendingAction, - isPolicy: true, + errors: policy.errors, dismissError: () => dismissWorkspaceError(policy.id, policy.pendingAction), disabled: policy.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, }))