mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01: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:
parent
f81195c920
commit
2f04c07262
@ -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…
Reference in New Issue
Block a user