From 24394b69e8992dfb39467c19ef3cba542bd6f703 Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Wed, 13 Mar 2024 11:02:18 +0100 Subject: [PATCH] Fix the error when submitting a threat edit form with a null value for the provider --- frontend/src/lib/utils/schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/utils/schemas.ts b/frontend/src/lib/utils/schemas.ts index 40b663921..3cf3ae210 100644 --- a/frontend/src/lib/utils/schemas.ts +++ b/frontend/src/lib/utils/schemas.ts @@ -70,7 +70,7 @@ export const RiskAssessmentSchema = baseNamedObject({ export const ThreatSchema = baseNamedObject({ folder: z.string(), - provider: z.string().optional() + provider: z.string().optional().nullable() }); export const RiskScenarioSchema = baseNamedObject({