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

@ -356,7 +356,14 @@ export const SelectFieldWide = ({
}
})}
value={field?.value && field.value.value}
onChange={(option) => setFieldValue(field.name, option?.value ?? "")}
onChange={(newValue: unknown) => {
if (newValue) {
setFieldValue(field.name, (newValue as { value: string }).value);
}
else {
setFieldValue(field.name, "")
}
}}
options={options}
/>
)}