Fix eslint no-redeclare in es5 files

[MAILPOET-1146]
This commit is contained in:
Pavel Dohnal
2018-03-01 11:15:13 +00:00
committed by Rostislav Wolný
parent fa44127efa
commit 3b2355d570
2 changed files with 2 additions and 3 deletions

View File

@@ -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)) {