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:
Erik Jan de Wit 2024-01-16 14:02:54 +01:00 committed by GitHub
parent 33651c396c
commit 4958d25e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>