mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
clear cipher cache after deleting a collection (#12686)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user