Skip to content

Commit

Permalink
fix update pendingField
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Mar 16, 2024
1 parent b2eb8c4 commit cd4b87b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,7 @@ function enablePolicyWorkflows(policyID: string, enabled: boolean) {
areWorkflowsEnabled: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
...(!enabled
? {
approvalMode: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
autoReporting: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
harvesting: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
reimbursementChoice: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
Expand All @@ -3595,6 +3596,7 @@ function enablePolicyWorkflows(policyID: string, enabled: boolean) {
areWorkflowsEnabled: null,
...(!enabled
? {
approvalMode: null,
autoReporting: null,
harvesting: null,
reimbursementChoice: null,
Expand Down Expand Up @@ -3622,6 +3624,7 @@ function enablePolicyWorkflows(policyID: string, enabled: boolean) {
areWorkflowsEnabled: null,
...(!enabled
? {
approvalMode: null,
autoReporting: null,
harvesting: null,
reimbursementChoice: null,
Expand Down

0 comments on commit cd4b87b

Please sign in to comment.