mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +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) {
|
async cancelCipher(cipher: CipherView) {
|
||||||
this.cipherId = cipher.id;
|
this.cipherId = cipher.id;
|
||||||
this.cipher = cipher;
|
this.cipher = cipher;
|
||||||
this.action = this.cipherId != null ? "view" : null;
|
this.action = this.cipherId ? "view" : null;
|
||||||
await this.go().catch(() => {});
|
await this.go().catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user