Skip to content

Commit

Permalink
InvitationsModal: Use suggest API for finding users
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 committed Aug 21, 2024
1 parent 8278b0d commit 69d3777
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export class UsersApi {
getUsers = async (query) => {
return await http.get(`${this.endpoint}?q=${query}`);
};

suggestUsers = async (query) => {
return await http.get(`${this.endpoint}?suggest=${query}`);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class InvitationsMembersModal extends Component {
<SearchWithRoleSelection
key="members-users"
searchType="user"
fetchMembers={client.getUsers}
fetchMembers={client.suggestUsers}
roleOptions={userRoles}
modalClose={this.handleCloseModal}
action={api.createInvite}
Expand Down

0 comments on commit 69d3777

Please sign in to comment.