1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

[PM-5465] Fix null checks in login view uris (#7421)

* Prefer empty lists to null

* Defensively null check public properties
This commit is contained in:
Matt Gibson
2024-01-11 09:55:16 -05:00
committed by GitHub
parent 48d4c88770
commit f8d72f0231
3 changed files with 9 additions and 12 deletions

View File

@@ -330,7 +330,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
this.cipher.login.uris.length === 1 &&
(this.cipher.login.uris[0].uri == null || this.cipher.login.uris[0].uri === "")
) {
this.cipher.login.uris = null;
this.cipher.login.uris = [];
}
// Allows saving of selected collections during "Add" and "Clone" flows