Skip to content

Commit

Permalink
Fix the error when submitting a threat edit form with a null value fo…
Browse files Browse the repository at this point in the history
…r the provider
  • Loading branch information
monsieurswag committed Mar 13, 2024
1 parent ed00ac9 commit 24394b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 24394b6

Please sign in to comment.