mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 04:51:10 +10:00
Implement space member search (#731)
* Hide pagination buttons if there is nothing to paginate * Create reusable hook for search and pagination
This commit is contained in:
@ -41,7 +41,7 @@ export async function getSpaceMembers(
|
||||
spaceId: string,
|
||||
params?: QueryParams,
|
||||
): Promise<IPagination<ISpaceMember>> {
|
||||
const req = await api.post<any>("/spaces/members", { spaceId, params });
|
||||
const req = await api.post<any>("/spaces/members", { spaceId, ...params });
|
||||
return req.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user