Skip to content

Commit

Permalink
fix: remove tags along with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Mar 14, 2024
1 parent 43a94aa commit c047c0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2897,9 +2897,12 @@ function clearPolicyTagErrors(policyID: string, tagName: string) {
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policyID}`, {
[tagListName]: {
tags: {
[tagName]: {
errors: null,
},
[tagName]:
tag.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD
? null
: {
errors: null,
},
},
},
});
Expand Down

0 comments on commit c047c0b

Please sign in to comment.