Skip to content

Commit

Permalink
clear cipher cache after deleting a collection (#12686)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaasen-livefront authored Jan 9, 2025
1 parent a872f67 commit 2271062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/app/vault/org-vault/vault.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,8 @@ export class VaultComponent implements OnInit, OnDestroy {

// Navigate away if we deleted the collection we were viewing
if (this.selectedCollection?.node.id === collection.id) {
// Clear the cipher cache to clear the deleted collection from the cipher state
await this.cipherService.clear();
void this.router.navigate([], {
queryParams: { collectionId: this.selectedCollection.parent?.node.id ?? null },
queryParamsHandling: "merge",
Expand Down

0 comments on commit 2271062

Please sign in to comment.