Open bardachov opened 6 years ago
Please see my open issue with BigCommerce Stencil-CLI, as this is causing server 500 errors and is any easy fix.
Thanks!
My local fix was to add an empty array as a default parameter, but you may choose to do a fast-fail...
helpers.forEach = function(array=[], options) {
Good catch... Since null
won't cause the default to be used. Want to do a PR?
Hi @jonschlinkert
Is this still open? I would be glad to do a PR to fix this.
I use helper in this way
{{# forEach allergens }} {{ tag }}{{# unless isLast }},{{/ unless }} {{/ forEach }}
but if
allergens = [{tag:32}, null]
I got an errorCannot set property 'index' of null line