Skip to content

Commit

Permalink
[20-10207] Bugfix for confirmation page (#33455)
Browse files Browse the repository at this point in the history
* Implement support for existing File Upload arrays, specifically in form 10207, and add support for multi-line confirmation page items under one label

* Updated confirmation page unit tests to match 10206

* Bugfix for undefined formData on confirmation page and FileField using a different formData file name property
  • Loading branch information
ndsprinkle authored Dec 10, 2024
1 parent 8fac5e6 commit 175b678
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
'ui:title': 'Upload additional evidence',
'ui:field': FileField,
'ui:confirmationField': ({ formData }) => ({
data: formData.map(item => item.fileName),
data: formData?.map(item => item.name || item.fileName),
label: uiTitle,
}),
'ui:options': {
Expand Down

0 comments on commit 175b678

Please sign in to comment.