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
fix(frontend): correct callback dependency array in user groups section
Scott Wilson0899f6047ac6
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserGroupsSection.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserGroupsSection.tsxindex b4ce1a34a9..b0ebf9a15d 100644--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserGroupsSection.tsx+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserGroupsSection.tsx@@ -26,20 +26,23 @@ export const UserGroupsSection = ({ orgMembership }: Props) => {const { mutateAsync: removeUserFromGroup } = useRemoveUserFromGroup();- const handleRemoveUserFromGroup = useCallback(async (groupId: string, groupSlug: string) => {- await removeUserFromGroup({- groupId,- slug: groupSlug,- username: orgMembership.user.username- });+ const handleRemoveUserFromGroup = useCallback(+ async (groupId: string, groupSlug: string) => {+ await removeUserFromGroup({+ groupId,+ slug: groupSlug,+ username: orgMembership.user.username+ });- createNotification({- type: "success",- text: "User removed from group successfully"- });+ createNotification({+ type: "success",+ text: "User removed from group successfully"+ });- handlePopUpClose("removeUserFromGroup");- }, []);+ handlePopUpClose("removeUserFromGroup");+ },+ [orgMembership, handlePopUpClose, createNotification]+ );return (<>