1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[AC-1999] Fix deleting collections from collection dialog (#8647)

* [AC-1999] Fix null check

this.collection can be both null or unassigned and `!= null` will handle both cases.

* [AC-1999] Navigate away when selected collection is deleted

---------

Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com>
This commit is contained in:
Shane Melton
2024-04-22 09:32:44 -07:00
committed by GitHub
parent 100b43dd8f
commit b395cb40a7
3 changed files with 24 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ export class VaultHeaderComponent implements OnInit {
? this.i18nService.t("collections").toLowerCase()
: this.i18nService.t("vault").toLowerCase();
if (this.collection !== undefined) {
if (this.collection != null) {
return this.collection.node.name;
}