diff --git a/packages/api-client/src/controllers/workspace.ts b/packages/api-client/src/controllers/workspace.ts index 00491d67..c79a293b 100644 --- a/packages/api-client/src/controllers/workspace.ts +++ b/packages/api-client/src/controllers/workspace.ts @@ -116,24 +116,7 @@ export default class WorkspaceController { request: GetWorkspaceInvitationsRequest, headers?: Record ): Promise> { - const queryParams = new URLSearchParams({ - page: request.page?.toString() || '0', - limit: request.limit?.toString() || '10', - sort: request.sort || '', - order: request.order || '', - search: request.search || '' - }) - - ;[...queryParams.keys()].forEach((key) => { - if (!queryParams.get(key)) { - queryParams.delete(key) - } - }) - - const url = parsePaginationUrl( - `/api/workspace/invitations?${queryParams.toString()}`, - headers - ) + const url = parsePaginationUrl('/api/workspace/invitations', headers) const response = await this.apiClient.get(url, headers) return await parseResponse(response)