generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Questions controller reduce errors (#286)
* Refactor: Set steps/fields in `populateReport()` This is so that these are available from the `QuestionsController` as well. * Don't look up conditional fields as questions This is to avoid unnecessary false errors in the logs. When questions/answers are submitted the submitted values' keys are fields names. However these field names can be either a question ID or a conditional field name (e.g. comment/date) This change only look up question IDs in the report config. NOTE: This does not change what we post to the API. Conditional fields values are still submitted when the question's answers require date/comment.
- Loading branch information
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters