mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +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,
|
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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue