From 4958d25e46574fa02bbcfec7d750b4e201c74987 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 16 Jan 2024 14:02:54 +0100 Subject: [PATCH] added choose as an option to reset (#26065) fixes: #25939 Signed-off-by: Erik Jan de Wit --- js/libs/ui-shared/src/user-profile/SelectComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libs/ui-shared/src/user-profile/SelectComponent.tsx b/js/libs/ui-shared/src/user-profile/SelectComponent.tsx index 89ad2677861..6a2222a6c43 100644 --- a/js/libs/ui-shared/src/user-profile/SelectComponent.tsx +++ b/js/libs/ui-shared/src/user-profile/SelectComponent.tsx @@ -69,13 +69,13 @@ export const SelectComponent = (props: UserProfileFieldProps) => { isDisabled={attribute.readOnly} required={isRequired} > - {options.map((option) => ( + {["", ...options].map((option) => ( - {label(option)} + {option ? label(option) : t("choose")} ))}