From dc9a5079ba05f38b7810cebb70dbe0f4c7beb3b0 Mon Sep 17 00:00:00 2001 From: Jonathan Prusik Date: Wed, 24 Jan 2024 12:40:32 -0500 Subject: [PATCH] handle access on cipher properties when cipher is undefined (new cipher creation) (#7666) --- libs/angular/src/vault/components/add-edit.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/angular/src/vault/components/add-edit.component.ts b/libs/angular/src/vault/components/add-edit.component.ts index 94b028d27b..c5ac7a2acd 100644 --- a/libs/angular/src/vault/components/add-edit.component.ts +++ b/libs/angular/src/vault/components/add-edit.component.ts @@ -508,8 +508,8 @@ export class AddEditComponent implements OnInit, OnDestroy { resetMaskState() { // toggle masks off for maskable login properties with no value on init/load - this.showTotpSeed = !this.cipher.login?.totp; - this.showPassword = !this.cipher.login?.password; + this.showTotpSeed = !this.cipher?.login?.totp; + this.showPassword = !this.cipher?.login?.password; } togglePassword() {