Remove 2 char restriction (#3294)

This commit is contained in:
Erik Jan de Wit 2022-09-12 15:29:44 +02:00 committed by GitHub
parent 169498bd63
commit a85cba6118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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