1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

Check for null cipher in edit (#1656)

This commit is contained in:
Robyn MacCallum
2022-05-10 13:33:16 -04:00
committed by GitHub
parent 81c6a4b1df
commit 136e8897ae

View File

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