mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update AddMemberModal.tsx
This commit is contained in:
@@ -88,10 +88,13 @@ export const AddMemberModal = ({ popUp, handlePopUpToggle }: Props) => {
|
||||
await addMembersToProject({
|
||||
inviteeEmails: selectedMembers.map((member) => member?.user.username!),
|
||||
organizationId: orgId,
|
||||
projects: projectRoleSlugs.map((roleSlug) => ({
|
||||
id: workspaceId,
|
||||
projectRoleSlug: roleSlug
|
||||
}))
|
||||
organizationRoleSlug: ProjectMembershipRole.Member, // ? This doesn't apply in this case, because we know the users being added are already part of the organization
|
||||
projects: [
|
||||
{
|
||||
id: workspaceId,
|
||||
projectRoleSlug: projectRoleSlugs
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
createNotification({
|
||||
|
||||
Reference in New Issue
Block a user