Skip to content

Commit

Permalink
Fixing helper, when an empty array is passed and the inverse/else blo…
Browse files Browse the repository at this point in the history
…ck is rendered gastonrobledo#9
  • Loading branch information
evertonrobertoauler committed Jan 16, 2023
1 parent 99186d0 commit 33b5681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/each.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ module.exports = (handlebars) => {
}

if (i === 0) {
ret = inverse(this)
return inverse(this);
} else {
return ret.join('');
}

return ret.join('')
})
}

0 comments on commit 33b5681

Please sign in to comment.