added choose as an option to reset (#26065)
fixes: #25939 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
33651c396c
commit
4958d25e46
1 changed files with 2 additions and 2 deletions
|
@ -69,13 +69,13 @@ export const SelectComponent = (props: UserProfileFieldProps) => {
|
|||
isDisabled={attribute.readOnly}
|
||||
required={isRequired}
|
||||
>
|
||||
{options.map((option) => (
|
||||
{["", ...options].map((option) => (
|
||||
<SelectOption
|
||||
selected={field.value === option}
|
||||
key={option}
|
||||
value={option}
|
||||
>
|
||||
{label(option)}
|
||||
{option ? label(option) : t("choose")}
|
||||
</SelectOption>
|
||||
))}
|
||||
</Select>
|
||||
|
|
Loading…
Reference in a new issue