diff --git a/frontend/src/pages/cases/EditableField.tsx b/frontend/src/pages/cases/EditableField.tsx index f84b879..7211d68 100644 --- a/frontend/src/pages/cases/EditableField.tsx +++ b/frontend/src/pages/cases/EditableField.tsx @@ -33,7 +33,8 @@ function formatDisplayValue(field: FieldConfig, value: unknown): string { if (field.type === 'date') return formatDisplayDate(value as string | null) if (field.type === 'boolean') return formatDisplayBoolean(value) if (field.type === 'select' && field.options) { - const opt = field.options.find((o) => o.value === (value ?? '')) + const matchVal = value || '__none__' + const opt = field.options.find((o) => o.value === matchVal) return opt?.label || (value as string) || '–' } return (value as string) || '–' @@ -93,8 +94,8 @@ export function EditableField({ field, value, editable, onChange }: EditableFiel )} {field.type === 'select' && field.options && (