build(deps): bump the npm group in /web with 23 updates (#1750)

This commit is contained in:
dependabot[bot] 2024-10-24 13:43:28 +00:00 committed by GitHub
parent 63b8519bd9
commit 4ba380b8ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 707 additions and 761 deletions

View file

@ -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}