From a85cba6118473b94d450906d4b7fe232169e7728 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 12 Sep 2022 15:29:44 +0200 Subject: [PATCH] Remove 2 char restriction (#3294) --- apps/admin-ui/src/clients/scopes/EvaluateScopes.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/admin-ui/src/clients/scopes/EvaluateScopes.tsx b/apps/admin-ui/src/clients/scopes/EvaluateScopes.tsx index 4daa42aed9..025144d8de 100644 --- a/apps/admin-ui/src/clients/scopes/EvaluateScopes.tsx +++ b/apps/admin-ui/src/clients/scopes/EvaluateScopes.tsx @@ -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([]); - } - }, + () => adminClient.users.find({ search: userSearch }), (users) => setUserItems( users