mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
handle access on cipher properties when cipher is undefined (new cipher creation) (#7666)
This commit is contained in:
@@ -508,8 +508,8 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
resetMaskState() {
|
resetMaskState() {
|
||||||
// toggle masks off for maskable login properties with no value on init/load
|
// toggle masks off for maskable login properties with no value on init/load
|
||||||
this.showTotpSeed = !this.cipher.login?.totp;
|
this.showTotpSeed = !this.cipher?.login?.totp;
|
||||||
this.showPassword = !this.cipher.login?.password;
|
this.showPassword = !this.cipher?.login?.password;
|
||||||
}
|
}
|
||||||
|
|
||||||
togglePassword() {
|
togglePassword() {
|
||||||
|
|||||||
Reference in New Issue
Block a user