1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-28 07:13:29 +00:00

null check fix

This commit is contained in:
Jackson Engstrom
2026-01-20 14:06:15 -08:00
parent 9e59c23900
commit 527f33d1f8

View File

@@ -156,7 +156,7 @@ export class CipherAttachmentsComponent {
// Update the initial state of the submit button
const btn = this.submitBtn();
if (btn) {
btn.disabled.set(!this.attachmentForm.valid && this.cipher().edit);
btn.disabled.set(!this.attachmentForm.valid && (this.cipher()?.edit ?? true));
}
});