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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(() => {});
}