mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 05:27:48 +00:00
fix empty policy step name issue
This commit is contained in:
+6
-1
@@ -40,7 +40,12 @@ export const PolicyFormSchema = z.object({
|
|||||||
}),
|
}),
|
||||||
steps: z
|
steps: z
|
||||||
.object({
|
.object({
|
||||||
name: z.string().max(128).nullable().optional(),
|
name: z
|
||||||
|
.string()
|
||||||
|
.max(128)
|
||||||
|
.nullable()
|
||||||
|
.optional()
|
||||||
|
.transform((name) => name || null),
|
||||||
requiredApprovals: z.number().min(1).max(100),
|
requiredApprovals: z.number().min(1).max(100),
|
||||||
notifyApprovers: z.boolean().optional(),
|
notifyApprovers: z.boolean().optional(),
|
||||||
approvers: z
|
approvers: z
|
||||||
|
|||||||
Reference in New Issue
Block a user