From 64f97be053ea0d0bc4c7da63302e809615ca5703 Mon Sep 17 00:00:00 2001 From: Isaac Mercieca Date: Wed, 30 Oct 2024 10:51:09 +0100 Subject: [PATCH] fixes issue with labels not being applied for selected items defined as user profile attributes with type multiselect (#34457) Signed-off-by: Isaac Mercieca --- js/libs/ui-shared/src/user-profile/SelectComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/libs/ui-shared/src/user-profile/SelectComponent.tsx b/js/libs/ui-shared/src/user-profile/SelectComponent.tsx index 5c4531c53d..546ecd95d7 100644 --- a/js/libs/ui-shared/src/user-profile/SelectComponent.tsx +++ b/js/libs/ui-shared/src/user-profile/SelectComponent.tsx @@ -82,7 +82,7 @@ export const SelectComponent = (props: UserProfileFieldProps) => { }} selections={ isMultiValue && Array.isArray(field.value) - ? field.value + ? field.value.map((option) => fetchLabel(option)) : fetchLabel(field.value) } variant={