Skip to content

Commit

Permalink
Merge pull request #146 from episerver/bugfix/AFORM-4376-fix-missing-…
Browse files Browse the repository at this point in the history
…seprator

Fix missing "|" to separate attached files in confirmation message
  • Loading branch information
epi-qang2 authored Sep 4, 2024
2 parents 156dbd4 + 14993c7 commit 0d75788
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getStringValue(element: FormSubmission) {
let fileNames = ""
for (let i = 0; i < numberOfFiles; i++) {
fileNames += `${fileList[i].name}`
if (i > 0 && i != numberOfFiles - 1) {
if (numberOfFiles > 1 && i != numberOfFiles - 1) {
fileNames += " | "
}
}
Expand Down

0 comments on commit 0d75788

Please sign in to comment.