Skip to content

Commit

Permalink
fix: verify members table
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-vm committed Nov 16, 2023
1 parent d0bb6a0 commit 1ca69ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/context/workspaces/api/getWorkspaceMembers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getWorkspaceUsers: (
page,
pageSize,
) => {
if (auth && workspaceId && page && pageSize) {
if (auth && workspaceId && !isNaN(page) && !isNaN(pageSize)) {
const url = getWorkspaceUsersUrl(auth, workspaceId, page, pageSize);

if (url) return await dominoApiClient.get(url);
Expand Down Expand Up @@ -68,7 +68,7 @@ export const useAuthenticatedGetWorkspaceUsers = (
params.page,
params.pageSize,
).then((data) => data?.data);
}, [params, auth]);
}, [params]);

return useSWR(
getWorkspaceUsersUrl(
Expand Down

0 comments on commit 1ca69ae

Please sign in to comment.