Skip to content

Commit

Permalink
fix: set milestone certifierProfessionalDesignation field to null w…
Browse files Browse the repository at this point in the history
…hen user selects N/A
  • Loading branch information
Sepehr-Sobhani committed Jul 20, 2023
1 parent 2414307 commit 4ba0cae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/data/jsonSchemaForm/projectMilestoneUiSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const projectMilestoneUiSchema = {
"ui:col-md": 12,
"bcgov:size": "small",
"ui:widget": "SearchWidget",
"ui:placeholder": "Select a Professional Designation",
},
adjustedGrossAmount: {
"ui:widget": "AdjustableCalculatedValueWidget",
Expand Down
8 changes: 4 additions & 4 deletions schema/data/prod/json_schema/milestone.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"title": "Certifier"
},
"certifierProfessionalDesignation": {
"type": "string",
"type": ["null", "string"],
"title": "Professional Designation",
"default": "Professional Engineer",
"anyOf": [
Expand All @@ -53,9 +53,9 @@
"enum": ["Certified Professional Accountant"]
},
{
"type": "string",
"title": "N/A",
"enum": [null]
"type": "null",
"enum": [null],
"title": "N/A"
}
]
}
Expand Down

0 comments on commit 4ba0cae

Please sign in to comment.