mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
when a colleciton is deleted, always refresh ciphers (#15549)
This commit is contained in:
@@ -1138,10 +1138,11 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
message: this.i18nService.t("deletedCollectionId", collection.name),
|
||||
});
|
||||
|
||||
// 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();
|
||||
|
||||
// Navigate away if we deleted the collection we were viewing
|
||||
if (this.selectedCollection?.node.id === collection.id) {
|
||||
void this.router.navigate([], {
|
||||
queryParams: { collectionId: this.selectedCollection.parent?.node.id ?? null },
|
||||
queryParamsHandling: "merge",
|
||||
|
||||
Reference in New Issue
Block a user