diff --git a/helpers/each.js b/helpers/each.js index 502cf94..9bf379b 100644 --- a/helpers/each.js +++ b/helpers/each.js @@ -102,9 +102,9 @@ module.exports = (handlebars) => { } if (i === 0) { - ret = inverse(this) + return inverse(this); + } else { + return ret.join(''); } - - return ret.join('') }) } diff --git a/package.json b/package.json index 158976a..1269047 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "author": "Gaston Robledo", "license": "MIT", "peerDependencies": { - "handlebars": "4.7.6" + "handlebars": "^4.7.6" }, "devDependencies": { "handlebars": "^4.7.6",