fix: PR fixes
This commit is contained in:
parent
1f6d272aa0
commit
21f3ee59ea
9 changed files with 52 additions and 43 deletions
|
|
@ -10,7 +10,7 @@ const AutocompleteFormik = ({ options, ...props }) => {
|
|||
const error = !!(touched[name] && errors[name])
|
||||
const { initialValues } = useFormikContext()
|
||||
|
||||
const iOptions =
|
||||
const innerOptions =
|
||||
R.type(options) === 'Function' ? options(initialValues) : options
|
||||
|
||||
return (
|
||||
|
|
@ -20,7 +20,7 @@ const AutocompleteFormik = ({ options, ...props }) => {
|
|||
onBlur={onBlur}
|
||||
value={value}
|
||||
error={error}
|
||||
options={iOptions}
|
||||
options={innerOptions}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue