Browse Source

Check for null cipher in edit (#1646)

Null ciphers signify a _new_ cipher, so no password repromt is required
pull/1650/head
Matt Gibson 4 years ago committed by GitHub
parent
commit
2f04c07262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/modules/vault/modules/organization-vault/organization-vault.component.ts

2
src/app/modules/vault/modules/organization-vault/organization-vault.component.ts

@ -262,7 +262,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy { @@ -262,7 +262,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
async editCipherId(cipherId: string) {
const cipher = await this.cipherService.get(cipherId);
if (cipher.reprompt != 0) {
if (cipher != null && cipher.reprompt != 0) {
if (!(await this.passwordRepromptService.showPasswordPrompt())) {
this.go({ cipherId: null });
return;

Loading…
Cancel
Save