mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 06:28:11 +00:00
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user