Skip to content

Commit

Permalink
Send exact param in user attr search only when its enabled
Browse files Browse the repository at this point in the history
Closes keycloak#34233

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
  • Loading branch information
sguilhen authored and pedroigor committed Nov 13, 2024
1 parent 347cd3b commit afc6a9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/apps/admin-ui/src/components/users/UserDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,17 @@ export function UserDataTable() {
first: first!,
max: max!,
q: query!,
exact: activeFilters.exact,
};

const searchParam = search || searchUser || "";
if (searchParam) {
params.search = searchParam;
}

if (activeFilters.exact) {
params.exact = true;
}

if (!listUsers && !(params.search || params.q)) {
return [];
}
Expand Down

0 comments on commit afc6a9c

Please sign in to comment.