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:
@@ -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(() => {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user