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

cipher.id now defaults to an empty string rather than null/undefined - use bang to transform into a boolean (#17137)

This commit is contained in:
Nick Krantz
2025-10-30 15:44:49 -05:00
committed by GitHub
parent 4a71503875
commit 326cd40628

View File

@@ -792,7 +792,7 @@ export class VaultV2Component<C extends CipherViewLike>
async cancelCipher(cipher: CipherView) {
this.cipherId = cipher.id;
this.cipher = cipher;
this.action = this.cipherId != null ? "view" : null;
this.action = this.cipherId ? "view" : null;
await this.go().catch(() => {});
}