From de25f206f4d83b6f457b8587eec0263c0b87e0e0 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Thu, 25 Apr 2024 10:14:43 +0200 Subject: [PATCH] fix: optional fields in compliance assessment --- frontend/src/lib/utils/schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/utils/schemas.ts b/frontend/src/lib/utils/schemas.ts index bae3ebeae..b0af18a5c 100644 --- a/frontend/src/lib/utils/schemas.ts +++ b/frontend/src/lib/utils/schemas.ts @@ -197,8 +197,8 @@ export const ComplianceAssessmentSchema = baseNamedObject({ framework: z.string(), eta: z.string().optional().nullable(), due_date: z.string().optional().nullable(), - authors: z.array(z.string().optional()), - reviewers: z.array(z.string().optional()) + authors: z.array(z.string()).optional(), + reviewers: z.array(z.string()).optional() }); export const EvidenceSchema = baseNamedObject({