This commit is contained in:
Jan Prochazka
2020-06-18 17:15:53 +02:00
parent 217be698af
commit 10d8a40d1c
2 changed files with 3 additions and 42 deletions

View File

@@ -92,7 +92,7 @@ export function FormReactSelect({ options, name, isMulti = false }) {
return (
<Select
options={options}
defaultValue={
value={
isMulti
? options.filter((x) => values[name] && values[name].includes(x.value))
: options.find((x) => x.value == values[name])