Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix empty policy step name issue

x03220536768f05b28e
diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySchema.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySchema.tsx
index ff76ddd1b5..e371c0663f 100644
--- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySchema.tsx
+++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySchema.tsx
@@ -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