Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update AddMemberModal.tsx

Daniel Hougaardbd0da0ff74e9
diff --git a/frontend/src/views/Project/MembersPage/components/MembersTab/components/AddMemberModal.tsx b/frontend/src/views/Project/MembersPage/components/MembersTab/components/AddMemberModal.tsx
index 6b6c92516d..b8f044617c 100644
--- a/frontend/src/views/Project/MembersPage/components/MembersTab/components/AddMemberModal.tsx
+++ b/frontend/src/views/Project/MembersPage/components/MembersTab/components/AddMemberModal.tsx
@@ -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({