Skip to content

Commit

Permalink
Merge pull request Expensify#56636 from allgandalf/unpinWorkspaceOpti…
Browse files Browse the repository at this point in the history
…mistically

[Fix]: Deleting a workspace in offline mode the archived chat isn’t unpinned
  • Loading branch information
jasperhuangg authored Feb 12, 2025
2 parents b10a56a + 2b174c3 commit 474cd0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ function deleteWorkspace(policyID: string, policyName: string) {
oldPolicyName: allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${policyID}`]?.name,
policyName: '',
}),
isPinned: false,
},
});

Expand Down Expand Up @@ -417,6 +418,7 @@ function deleteWorkspace(policyID: string, policyName: string) {
value: {
oldPolicyName,
policyName: report?.policyName,
isPinned: report?.isPinned,
},
});
failureData.push({
Expand Down

0 comments on commit 474cd0a

Please sign in to comment.