Skip to content

Commit

Permalink
fix(per): Ensure add another responses are rendered correctly
Browse files Browse the repository at this point in the history
This passes a responded property to the framework response component
for add another fields.

The framework response component was updated to know about both
responded and prefilled and now requires that the value be passed
as true in order to render the value.
  • Loading branch information
teneightfive committed Oct 30, 2020
1 parent be2fc31 commit 10d22d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/presenters/framework-field-summary-list-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function frameworkFieldToSummaryListRow(stepUrl) {
response: {
...descendantResponse,
question: frameworkQuestion,
responded: true,
},
}
})
Expand Down
2 changes: 1 addition & 1 deletion common/presenters/framework-field-summary-list-row.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ describe('Presenters', function () {
{
value: test.value,
valueType: test.valueType,
responded: false,
responded: true,
prefilled: false,
questionUrl: `${mockStepUrl}#${test.id}`,
}
Expand Down

0 comments on commit 10d22d8

Please sign in to comment.