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): handle custom roles for group membership role edit
Scott Wilson20f1363b2ef1
diff --git a/frontend/src/hooks/api/groups/types.ts b/frontend/src/hooks/api/groups/types.tsindex f5549a3c1d..a9656c5a58 100644--- a/frontend/src/hooks/api/groups/types.ts+++ b/frontend/src/hooks/api/groups/types.ts@@ -14,6 +14,7 @@ export type TGroup = {createdAt: string;updatedAt: string;role: string;+ roleId: string;};export type TGroupMembership = {diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsxindex 7edae7fbba..3f0ca0592b 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx@@ -126,7 +126,7 @@ const Page = () => {groupId,name: data.group.name,slug: data.group.slug,- role: data.group.role+ role: data.group.roleId || data.group.role});}}>diff --git a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsxindex 6a245a79d6..0389fb542e 100644--- a/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx+++ b/frontend/src/pages/organization/GroupDetailsByIDPage/components/GroupDetailsSection.tsx@@ -52,7 +52,7 @@ export const GroupDetailsSection = ({ groupId, handlePopUpOpen }: Props) => {groupId,name: data.group.name,slug: data.group.slug,- role: data.group.role+ role: data.group.roleId || data.group.role});}}size="xs"