fix(ui): Don't convert form inputs from string

Action, connector, MCP, dynamic prompts and anything else that is
stored as an array in the config; their fields are always stored
as string by the backend.

Signed-off-by: Richard Palethorpe <io@richiejp.com>
This commit is contained in:
Richard Palethorpe
2025-04-07 13:56:06 +01:00
parent 6464a33912
commit 18364d169e

View File

@@ -62,10 +62,10 @@ const ConfigForm = ({
const item = items[index];
const config = parseConfig(item);
// Convert value to number if it's a number input
const processedValue = type === 'number' ? Number(value) : value;
config[key] = type === 'checkbox' ? checked : processedValue;
if (type === 'checkbox')
config[key] = checked ? 'true' : 'false';
else
config[key] = value;
onChange(index, {
...item,