Remove 2 char restriction (#3294)
This commit is contained in:
parent
169498bd63
commit
a85cba6118
1 changed files with 1 additions and 7 deletions
|
@ -164,13 +164,7 @@ export const EvaluateScopes = ({ clientId, protocol }: EvaluateScopesProps) => {
|
|||
};
|
||||
|
||||
useFetch(
|
||||
() => {
|
||||
if (userSearch.length > 2) {
|
||||
return adminClient.users.find({ search: userSearch });
|
||||
} else {
|
||||
return Promise.resolve<UserRepresentation[]>([]);
|
||||
}
|
||||
},
|
||||
() => adminClient.users.find({ search: userSearch }),
|
||||
(users) =>
|
||||
setUserItems(
|
||||
users
|
||||
|
|
Loading…
Reference in a new issue