diff --git a/packages/builder/src/pages/builder/portal/users/groups/_components/GroupUsers.svelte b/packages/builder/src/pages/builder/portal/users/groups/_components/GroupUsers.svelte
index 1efb2fb66c..0848633949 100644
--- a/packages/builder/src/pages/builder/portal/users/groups/_components/GroupUsers.svelte
+++ b/packages/builder/src/pages/builder/portal/users/groups/_components/GroupUsers.svelte
@@ -12,7 +12,7 @@
export let groupId
- let searchTerm
+ let emailSearch
let fetchGroupUsers
$: fetchGroupUsers = fetchData({
API,
@@ -22,7 +22,7 @@
options: {
query: {
groupId,
- searchTerm,
+ emailSearch,
},
},
})
@@ -71,7 +71,7 @@
-
+
{
/**
* Gets a group users by the group id
*/
- getGroupUsers: async ({ id, bookmark, searchTerm }) => {
+ getGroupUsers: async ({ id, bookmark, emailSearch }) => {
let url = `/api/global/groups/${id}/users?`
if (bookmark) {
url += `bookmark=${bookmark}&`
}
- if (searchTerm) {
- url += `searchTerm=${searchTerm}&`
+ if (emailSearch) {
+ url += `emailSearch=${emailSearch}&`
}
return await API.get({
diff --git a/packages/frontend-core/src/fetch/GroupUserFetch.js b/packages/frontend-core/src/fetch/GroupUserFetch.js
index b6704434c8..bd2cf264c5 100644
--- a/packages/frontend-core/src/fetch/GroupUserFetch.js
+++ b/packages/frontend-core/src/fetch/GroupUserFetch.js
@@ -31,7 +31,7 @@ export default class GroupUserFetch extends DataFetch {
try {
const res = await this.API.getGroupUsers({
id: query.groupId,
- searchTerm: query.searchTerm,
+ emailSearch: query.emailSearch,
bookmark: cursor,
})