mirror of
https://github.com/bitwarden/browser
synced 2026-01-28 07:13:29 +00:00
null check fix
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user