mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
fixes: #38964 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> (cherry picked from commit ab1c7816018e7482f37961370f27abddb4458ab4)
This commit is contained in:
parent
c727590c66
commit
b4b6e086a3
@ -49,6 +49,13 @@ export const ClientSelect = ({
|
||||
defaultValue: defaultValue || "",
|
||||
});
|
||||
|
||||
const getValue = (): string[] => {
|
||||
if (typeof value === "string") {
|
||||
return [value];
|
||||
}
|
||||
return value || [];
|
||||
};
|
||||
|
||||
useFetch(
|
||||
() => {
|
||||
const params: ClientQuery = {
|
||||
@ -66,7 +73,7 @@ export const ClientSelect = ({
|
||||
|
||||
useFetch(
|
||||
() => {
|
||||
const values = ((value as string[]) || []).map(async (clientId) => {
|
||||
const values = getValue().map(async (clientId) => {
|
||||
if (clientKey === "clientId") {
|
||||
return (await adminClient.clients.find({ clientId }))[0];
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user