Skip to content

Commit

Permalink
update correct policyName in optimistic data
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Mar 15, 2024
1 parent 4e599b2 commit 832b523
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ function deleteWorkspace(policyID: string, policyName: string) {
statusNum: CONST.REPORT.STATUS_NUM.CLOSED,
hasDraft: false,
oldPolicyName: allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${policyID}`]?.name ?? '',
policyName: '',
},
});

Expand Down Expand Up @@ -364,6 +365,7 @@ function deleteWorkspace(policyID: string, policyName: string) {
statusNum,
hasDraft,
oldPolicyName,
policyName: report?.policyName,
},
});
});
Expand Down

0 comments on commit 832b523

Please sign in to comment.