mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-07 15:41:29 -05:00
backport to fix username display in the users dropdown on create/edit user policy (#30737)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
@@ -9,6 +9,7 @@ export const User = () => {
|
||||
label="users"
|
||||
helpText={t("policyUsers")}
|
||||
defaultValue={[]}
|
||||
variant="typeaheadMulti"
|
||||
isRequired
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -154,7 +154,10 @@ export const UserSelect = ({
|
||||
);
|
||||
}}
|
||||
>
|
||||
{selection}
|
||||
{
|
||||
users.find((u) => u?.id === selection)
|
||||
?.username
|
||||
}
|
||||
</Chip>
|
||||
),
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user