1
0
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:
Jordan Aasen
2025-01-09 10:38:27 -08:00
committed by GitHub
parent a872f67523
commit 2271062a5a

View File

@@ -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",