mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
handle access on cipher properties when cipher is undefined (new cipher creation) (#7666)
This commit is contained in:
parent
af0d2f515d
commit
dc9a5079ba
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user