mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
use the first value from options as default (#20652)
fixes: #20379 Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
parent
c84fcbfff9
commit
5967c71bf7
@ -35,7 +35,7 @@ export const ListComponent = ({
|
||||
<Controller
|
||||
name={convertToName(name!)}
|
||||
data-testid={name}
|
||||
defaultValue={defaultValue || ""}
|
||||
defaultValue={defaultValue || options?.[0] || ""}
|
||||
control={control}
|
||||
render={({ field }) => (
|
||||
<Select
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user