Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
refactor: simplify user removal logic and enhance notification handling in UserProjectsSection
Victor Santosedd34f5561ce
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsxindex 843b5a63c0..6e128036b2 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectsSection.tsx@@ -31,19 +31,11 @@ export const UserProjectsSection = ({ membershipId }: Props) => {] as const);const handleRemoveUser = async (projectId: string, username: string) => {- try {- await removeUserFromWorkspace({ projectId, usernames: [username], orgId });- createNotification({- text: "Successfully removed user from project",- type: "success"- });- } catch (error) {- console.error(error);- createNotification({- text: "Failed to remove user from the project",- type: "error"- });- }+ await removeUserFromWorkspace({ projectId, usernames: [username], orgId });+ createNotification({+ text: "Successfully removed user from project",+ type: "success"+ });handlePopUpClose("removeUserFromProject");};