From 832b5237c106da2d4345fd8a76738bd9e461751a Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 15 Mar 2024 14:40:33 +0700 Subject: [PATCH] update correct policyName in optimistic data --- src/libs/actions/Policy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index 6699f8756005..53ecf6299fe5 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -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: '', }, }); @@ -364,6 +365,7 @@ function deleteWorkspace(policyID: string, policyName: string) { statusNum, hasDraft, oldPolicyName, + policyName: report?.policyName, }, }); });