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

change equality checks to account for null and undefined (#16971)

This commit is contained in:
Nick Krantz
2025-10-21 14:54:35 -05:00
committed by GitHub
parent 1c9f1dbd62
commit d9e1bde5e0
2 changed files with 34 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ export class ItemDetailsSectionComponent implements OnInit {
this.itemDetailsForm.controls.organizationId.disabled ||
(!this.allowPersonalOwnership &&
this.config.originalCipher &&
this.itemDetailsForm.controls.organizationId.value === null)
this.itemDetailsForm.controls.organizationId.value == null)
);
}
@@ -252,7 +252,7 @@ export class ItemDetailsSectionComponent implements OnInit {
// When editing a cipher and the user cannot have personal ownership
// and the cipher is is not within the organization - force the user to
// move the cipher within the organization first before editing any other field
if (this.itemDetailsForm.controls.organizationId.value === null) {
if (this.itemDetailsForm.controls.organizationId.value == null) {
this.cipherFormContainer.disableFormFields();
this.itemDetailsForm.controls.organizationId.enable();
this.favoriteButtonDisabled = true;