I've been working all day and found a bug with shopify here's the simplest code that makes the bug occur. It also exposes some ruby code.
When you loop over a linklist and then assign the for variable to something else it produces an unexpected result. For some reason that link variable is now immutable and I can't change it.
{% for link in linklists["home-page-flexcards"].links %}
{% assign link = "hello world" %}
{{ link }}
{% endfor %}
Linklists don't behave like the other objects either they should be wrapped within a LinklistDrop I believe that this would prevent this from happening.
I've been working all day and found a bug with shopify here's the simplest code that makes the bug occur. It also exposes some ruby code.
When you loop over a linklist and then assign the for variable to something else it produces an unexpected result. For some reason that link variable is now immutable and I can't change it.
Linklists don't behave like the other objects either they should be wrapped within a LinklistDrop I believe that this would prevent this from happening.