We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use helper in this way {{# forEach allergens }} {{ tag }}{{# unless isLast }},{{/ unless }} {{/ forEach }}
{{# forEach allergens }} {{ tag }}{{# unless isLast }},{{/ unless }} {{/ forEach }}
but if allergens = [{tag:32}, null] I got an error Cannot set property 'index' of null line
allergens = [{tag:32}, null]
Cannot set property 'index' of null line
The text was updated successfully, but these errors were encountered:
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) {
helpers.forEach = function(array=[], options) {
Sorry, something went wrong.
Good catch... Since null won't cause the default to be used. Want to do a PR?
null
Hi @jonschlinkert
Is this still open? I would be glad to do a PR to fix this.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: