From 527f33d1f8d64f2b4527de09f0227acdd3cb7053 Mon Sep 17 00:00:00 2001 From: Jackson Engstrom Date: Tue, 20 Jan 2026 14:06:15 -0800 Subject: [PATCH] null check fix --- .../components/attachments/cipher-attachments.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vault/src/cipher-form/components/attachments/cipher-attachments.component.ts b/libs/vault/src/cipher-form/components/attachments/cipher-attachments.component.ts index 4f331ba069a..e0a648e3107 100644 --- a/libs/vault/src/cipher-form/components/attachments/cipher-attachments.component.ts +++ b/libs/vault/src/cipher-form/components/attachments/cipher-attachments.component.ts @@ -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)); } });