1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

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

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;