mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Merge pull request #3593 from Infisical/ENG-2742
Fixed project roles not being editable in some cases
This commit is contained in:
@@ -19,7 +19,7 @@ export type TProjectRole = {
|
|||||||
id: string;
|
id: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
description?: string;
|
description?: string | null;
|
||||||
permissions: TProjectPermission[];
|
permissions: TProjectPermission[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ export type TDeleteOrgRoleDTO = {
|
|||||||
export type TCreateProjectRoleDTO = {
|
export type TCreateProjectRoleDTO = {
|
||||||
projectId: string;
|
projectId: string;
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
description?: string | null;
|
||||||
slug: string;
|
slug: string;
|
||||||
permissions: TProjectPermission[];
|
permissions: TProjectPermission[];
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -190,7 +190,7 @@ const ConditionSchema = z
|
|||||||
|
|
||||||
export const projectRoleFormSchema = z.object({
|
export const projectRoleFormSchema = z.object({
|
||||||
name: z.string().trim(),
|
name: z.string().trim(),
|
||||||
description: z.string().trim().optional(),
|
description: z.string().trim().nullish(),
|
||||||
slug: z
|
slug: z
|
||||||
.string()
|
.string()
|
||||||
.trim()
|
.trim()
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {
|
|||||||
if (role) {
|
if (role) {
|
||||||
reset({
|
reset({
|
||||||
name: role.name,
|
name: role.name,
|
||||||
description: role.description,
|
description: role.description || "",
|
||||||
slug: role.slug
|
slug: role.slug
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user