mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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
|
// Navigate away if we deleted the collection we were viewing
|
||||||
if (this.selectedCollection?.node.id === collection.id) {
|
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([], {
|
void this.router.navigate([], {
|
||||||
queryParams: { collectionId: this.selectedCollection.parent?.node.id ?? null },
|
queryParams: { collectionId: this.selectedCollection.parent?.node.id ?? null },
|
||||||
queryParamsHandling: "merge",
|
queryParamsHandling: "merge",
|
||||||
|
|||||||
Reference in New Issue
Block a user