diff --git a/webui/react-ui/src/components/ConfigForm.jsx b/webui/react-ui/src/components/ConfigForm.jsx index 7ff1f7a..dd3047a 100644 --- a/webui/react-ui/src/components/ConfigForm.jsx +++ b/webui/react-ui/src/components/ConfigForm.jsx @@ -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,