Skip to content

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

Fixed project roles not being editable in some cases

x0322056cf1e046b0c0
diff --git a/frontend/src/hooks/api/roles/types.ts b/frontend/src/hooks/api/roles/types.ts
index ee95e8c23e..12286bf9be 100644
--- a/frontend/src/hooks/api/roles/types.ts
+++ b/frontend/src/hooks/api/roles/types.ts
@@ -19,7 +19,7 @@ export type TProjectRole = {
id: string;
createdAt: string;
updatedAt: string;
- description?: string;
+ description?: string | null;
permissions: TProjectPermission[];
};
@@ -76,7 +76,7 @@ export type TDeleteOrgRoleDTO = {
export type TCreateProjectRoleDTO = {
projectId: string;
name: string;
- description?: string;
+ description?: string | null;
slug: string;
permissions: TProjectPermission[];
};
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
index a4cf29e3fb..e4b9ed3024 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
@@ -190,7 +190,7 @@ const ConditionSchema = z
export const projectRoleFormSchema = z.object({
name: z.string().trim(),
- description: z.string().trim().optional(),
+ description: z.string().trim().nullish(),
slug: z
.string()
.trim()