handle access on cipher properties when cipher is undefined (new cipher creation) (#7666)

This commit is contained in:
Jonathan Prusik 2024-01-24 12:40:32 -05:00 committed by GitHub
parent af0d2f515d
commit dc9a5079ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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() {