diff --git a/src/components/cases/litigation-tab.tsx b/src/components/cases/litigation-tab.tsx index 977fd79..1b016c5 100644 --- a/src/components/cases/litigation-tab.tsx +++ b/src/components/cases/litigation-tab.tsx @@ -59,7 +59,13 @@ export function CaseLitigationTab({ caseRecord, canManage, onSaved }: Props) { const save = async () => { setSaving(true); const payload: any = { key_dates: keyDates.filter((k) => k.date || k.label) }; - [...FIELDS, ...OPPOSING, { key: "case_summary", label: "", type: "text" }, { key: "next_hearing_notes", label: "", type: "text" }].forEach((f) => { + const all: Array<{ key: string; type?: string }> = [ + ...FIELDS, + ...OPPOSING, + { key: "case_summary", type: "text" }, + { key: "next_hearing_notes", type: "text" }, + ]; + all.forEach((f) => { const v = form[f.key]; if (f.type === "number") payload[f.key] = v === "" || v == null ? null : Number(v); else payload[f.key] = v === "" ? null : v ?? null;