diff --git a/.eslintrc.es5.json b/.eslintrc.es5.json index 8dba8e958d..f13a89cd60 100644 --- a/.eslintrc.es5.json +++ b/.eslintrc.es5.json @@ -20,7 +20,6 @@ "no-restricted-syntax": 0, "no-useless-concat": 0, "no-nested-ternary": 0, - "no-redeclare": 0, "no-console": 0, "no-empty": 0, "no-useless-escape": 0, diff --git a/assets/js/src/subscribers/importExport/import.js b/assets/js/src/subscribers/importExport/import.js index 04e5eedba8..aefebb75cc 100644 --- a/assets/js/src/subscribers/importExport/import.js +++ b/assets/js/src/subscribers/importExport/import.js @@ -731,8 +731,8 @@ define( }); // start array index from 1 - Handlebars.registerHelper('calculate_index', function (index) { - var index = parseInt(index); + Handlebars.registerHelper('calculate_index', function (rawIndex) { + var index = parseInt(rawIndex); // display filler data (e.g., ellipsis) if we've reached the maximum number of rows and // subscribers count is greater than the maximum number of rows we're displaying if (index === maxRowsToShow && subscribers.subscribersCount > (maxRowsToShow + 1)) {