Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 00:04:22 +00:00
co-authored by renee-png
parent ece6b645af
commit e8188b7580
+7 -1
View File
@@ -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;