fix: update form submission to include auth_method and handle empty max_documents input

This commit is contained in:
Anish Sarkar 2025-10-08 17:11:44 +05:30
parent 8b32f14476
commit a7ad21d7fa

View file

@ -129,6 +129,7 @@ export default function ElasticsearchConnectorPage() {
hostname, hostname,
port, port,
ssl_enabled, ssl_enabled,
auth_method: values.auth_method,
}; };
if (values.auth_method === "basic") { if (values.auth_method === "basic") {
@ -523,7 +524,13 @@ export default function ElasticsearchConnectorPage() {
min="1" min="1"
max="10000" max="10000"
{...field} {...field}
onChange={(e) => field.onChange(parseInt(e.target.value, 10))} onChange={(e) =>
field.onChange(
e.target.value === ""
? undefined
: parseInt(e.target.value, 10)
)
}
/> />
</FormControl> </FormControl>
<FormDescription> <FormDescription>