mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
use the first value from options as default (#20652)
fixes: #20379 Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user