mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05: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