mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix empty policy step name issue
This commit is contained in:
@@ -40,7 +40,12 @@ export const PolicyFormSchema = z.object({
|
||||
}),
|
||||
steps: z
|
||||
.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),
|
||||
notifyApprovers: z.boolean().optional(),
|
||||
approvers: z
|
||||
|
||||
Reference in New Issue
Block a user