mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Updated cipher view to have the latest value of organizationUseTotp from server response (#13223)
This commit is contained in:
@@ -151,7 +151,7 @@ export class CustomFieldsComponent implements OnInit, AfterViewInit {
|
||||
const prefillCipher = this.cipherFormContainer.getInitialCipherView();
|
||||
|
||||
// When available, populate the form with the existing fields
|
||||
prefillCipher.fields?.forEach((field) => {
|
||||
prefillCipher?.fields?.forEach((field) => {
|
||||
let value: string | boolean = field.value;
|
||||
|
||||
if (field.type === FieldType.Boolean) {
|
||||
|
||||
@@ -158,7 +158,7 @@ export class ItemDetailsSectionComponent implements OnInit {
|
||||
|
||||
get allowOwnershipChange() {
|
||||
// Do not allow ownership change in edit mode and the cipher is owned by an organization
|
||||
if (this.config.mode === "edit" && this.originalCipherView.organizationId != null) {
|
||||
if (this.config.mode === "edit" && this.originalCipherView?.organizationId != null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user