fixes issue with labels not being applied for selected items defined as user profile attributes with type multiselect (#34457)

Signed-off-by: Isaac Mercieca <isaac.mercieca@rs2.com>
This commit is contained in:
Isaac Mercieca 2024-10-30 10:51:09 +01:00 committed by GitHub
parent e41ca1f579
commit 64f97be053
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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