mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
build(deps): bump the npm group in /web with 23 updates (#1750)
This commit is contained in:
parent
63b8519bd9
commit
4ba380b8ea
7 changed files with 707 additions and 761 deletions
|
@ -519,18 +519,12 @@ export function SelectField<T>({ name, label, options, placeholder }: SelectFiel
|
|||
}
|
||||
})}
|
||||
value={field?.value && options.find(o => o.value == field?.value)}
|
||||
onChange={(option) => {
|
||||
// resetForm();
|
||||
|
||||
if (option !== null) {
|
||||
// const opt = option as SelectOption;
|
||||
// setFieldValue("name", option?.label ?? "")
|
||||
setFieldValue(
|
||||
field.name,
|
||||
option.value ?? ""
|
||||
);
|
||||
} else {
|
||||
setFieldValue(field.name, undefined);
|
||||
onChange={(newValue: unknown) => {
|
||||
if (newValue) {
|
||||
setFieldValue(field.name, (newValue as { value: number }).value);
|
||||
}
|
||||
else {
|
||||
setFieldValue(field.name, 0)
|
||||
}
|
||||
}}
|
||||
options={options}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue