Check for null cipher in edit (#1646)

Null ciphers signify a _new_ cipher, so no password repromt is required
This commit is contained in:
Matt Gibson 2022-05-09 14:53:31 -04:00 committed by GitHub
parent f81195c920
commit 2f04c07262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;