diff --git a/Form/Core/AutocompleteSelect.tsx b/Form/Core/AutocompleteSelect.tsx index 738db04..71dda30 100644 --- a/Form/Core/AutocompleteSelect.tsx +++ b/Form/Core/AutocompleteSelect.tsx @@ -84,13 +84,7 @@ export function AutocompleteSelect({ title, titleProps = null, data, nullable } onChange={(value) => { // If value is an object (from internalData lookup), store only the primitive .value - if (Array.isArray(value)) { - const stored = value.map((v) => (typeof v === "string" ? v : v.value)); - field.onChange({ target: { value: stored, name: field.name } }); - } else { - const stored = value != null && typeof value === "object" ? (value as any).value : value; - field.onChange({ target: { value: stored, name: field.name } }); - } + field.onChange({ target: { value, name: field.name } }); } } nullable={nullable as any}