Skip to content

Commit 33b5681

Browse files
Fixing helper, when an empty array is passed and the inverse/else block is rendered gastonrobledo#9
1 parent 99186d0 commit 33b5681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helpers/each.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ module.exports = (handlebars) => {
102102
}
103103

104104
if (i === 0) {
105-
ret = inverse(this)
105+
return inverse(this);
106+
} else {
107+
return ret.join('');
106108
}
107-
108-
return ret.join('')
109109
})
110110
}

0 commit comments

Comments
 (0)