Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 74 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@defra/forms-model": "^3.0.687",
"@defra/forms-model": "^3.0.689",
"@defra/hapi-tracing": "^1.29.0",
"@defra/interactive-map": "^0.0.33-alpha",
"@elastic/ecs-pino-format": "^1.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/server/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export const EXTERNAL_STATE_PAYLOAD = 'EXTERNAL_STATE_PAYLOAD'
export const EXTERNAL_STATE_APPENDAGE = 'EXTERNAL_STATE_APPENDAGE'
export const COMPONENT_STATE_ERROR = 'COMPONENT_STATE_ERROR'
export const PAYMENT_EXPIRED_NOTIFICATION = 'PAYMENT_EXPIRED_NOTIFICATION'
export const EN_GB = 'en-GB'
8 changes: 4 additions & 4 deletions src/server/plugins/engine/models/SummaryViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ function ItemRepeat(
translator: Translator
): DetailItemRepeat {
const { collection, repeat } = page
const { name, title } = repeat.options

const { name } = repeat.options
const { t, tPage } = translator
const title = tPage(page.pageDef, 'repeatTitle') || repeat.options.title
const values = page.getListFromState(state)
const count = values.length
const value =
count === 0 ? '' : translator.t('pages.repeater.pageTitle', { count })
const value = count === 0 ? '' : t('pages.repeater.pageTitle', { count })

return {
name,
Expand Down
Loading
Loading