mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
fix: update form submission to include auth_method and handle empty max_documents input
This commit is contained in:
parent
8b32f14476
commit
a7ad21d7fa
1 changed files with 8 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ export default function ElasticsearchConnectorPage() {
|
|||
hostname,
|
||||
port,
|
||||
ssl_enabled,
|
||||
auth_method: values.auth_method,
|
||||
};
|
||||
|
||||
if (values.auth_method === "basic") {
|
||||
|
|
@ -523,7 +524,13 @@ export default function ElasticsearchConnectorPage() {
|
|||
min="1"
|
||||
max="10000"
|
||||
{...field}
|
||||
onChange={(e) => field.onChange(parseInt(e.target.value, 10))}
|
||||
onChange={(e) =>
|
||||
field.onChange(
|
||||
e.target.value === ""
|
||||
? undefined
|
||||
: parseInt(e.target.value, 10)
|
||||
)
|
||||
}
|
||||
/>
|
||||
</FormControl>
|
||||
<FormDescription>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue