From e8188b7580a6fdfe2cc10bc1b4d2d653b6c64edb Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:04:22 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/cases/litigation-tab.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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;