diff --git a/api.planx.uk/modules/flows/validate/service.ts b/api.planx.uk/modules/flows/validate/service.ts index bda0e7cb4a..231e001687 100644 --- a/api.planx.uk/modules/flows/validate/service.ts +++ b/api.planx.uk/modules/flows/validate/service.ts @@ -237,7 +237,7 @@ const validateFileTypes = (flowGraph: FlowGraph): ValidationResponse => { if (invalidFileFns.length > 0) { // Get unique fns with count of occurances const countInvalidFileFns = countBy(invalidFileFns); - let summarisedInvalidFileFns: string[] = []; + const summarisedInvalidFileFns: string[] = []; Object.entries(countInvalidFileFns).map(([k, v]: [string, number]) => { summarisedInvalidFileFns.push(`${k} (${v})`); });