Skip to content
Discussion options

You must be logged in to vote

I think the issue is that this will stringify the array into a string of "[object Object]":

eleventyComputed:
  images: "{{ product.node.images.nodes }}"

I'd have to try rebuilding everything from scratch to see if it'd have the same behavior if you used ---js front matter instead, or moved the front matter into an external products.11tydata.js file and tried aliasing the computed images as an array instead of a string.

https://www.11ty.dev/docs/data-computed/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ed-ponce
Comment options

@pdehaan
Comment options

pdehaan Dec 13, 2022
Collaborator

@ed-ponce
Comment options

Answer selected by ed-ponce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants