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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user