chore: update members endpoint (#2569)

This commit is contained in:
Aaryan Khandelwal 2023-10-31 12:16:40 +05:30 committed by GitHub
parent 59c52023fb
commit cb533849e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 94 additions and 126 deletions

View file

@ -25,7 +25,7 @@ export const ModuleLeadSelect: React.FC<Props> = ({ value, onChange }) => {
const { data: members } = useSWR(
workspaceSlug && projectId ? PROJECT_MEMBERS(projectId as string) : null,
workspaceSlug && projectId
? () => projectService.projectMembers(workspaceSlug as string, projectId as string)
? () => projectService.fetchProjectMembers(workspaceSlug as string, projectId as string)
: null
);

View file

@ -24,7 +24,7 @@ export const ModuleMembersSelect: React.FC<Props> = ({ value, onChange }) => {
const { data: members } = useSWR(
workspaceSlug && projectId ? PROJECT_MEMBERS(projectId as string) : null,
workspaceSlug && projectId
? () => projectService.projectMembers(workspaceSlug as string, projectId as string)
? () => projectService.fetchProjectMembers(workspaceSlug as string, projectId as string)
: null
);
const options = members?.map((member) => ({