keep default value a string when stringify (#31597)
fixes: #31480 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
01f5747eed
commit
eea1d10e23
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ export const MultiValuedListComponent = ({
|
|||
<Controller
|
||||
name={convertToName(name!)}
|
||||
control={control}
|
||||
defaultValue={defaultValue ? [defaultValue] : []}
|
||||
defaultValue={
|
||||
stringify ? defaultValue || "" : defaultValue ? [defaultValue] : []
|
||||
}
|
||||
render={({ field }) => (
|
||||
<KeycloakSelect
|
||||
toggleId={name}
|
||||
|
|
Loading…
Reference in a new issue