Skip to content

Commit

Permalink
Merge pull request #143 from intuitem/CA-303-Update-error
Browse files Browse the repository at this point in the history
Fix the error when submitting a threat edit form with a null value for the provider
  • Loading branch information
eric-intuitem authored Mar 13, 2024
2 parents 8635e63 + 24394b6 commit 32fec32
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 32fec32

Please sign in to comment.