Skip to content

Commit

Permalink
GFORMS-3063 - Fix rendering of invisible component's value in table w…
Browse files Browse the repository at this point in the history
  • Loading branch information
DursunGundogan committed Dec 9, 2024
1 parent 454d189 commit 2fd8895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/uk/gov/hmrc/gform/gform/SectionRenderingService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ class SectionRenderingService(
lString
) {
case (accumulatedString, (formCtx: FormCtx, index)) =>
formModelOptics.formModelVisibilityOptics.fcLookup(formCtx.formComponentId) match {
formModelOptics.formModelRenderPageOptics.formModel.fcLookup(formCtx.formComponentId) match {
case IsText(text) =>
text.suffix.fold(accumulatedString)(ss =>
accumulatedString.replace(s"{$index}", s"{$index} ${ss.value()}")
Expand Down

0 comments on commit 2fd8895

Please sign in to comment.