You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally, if modifier is not exist, we should return only ['a-button']. Or if it's exist -> it should return ['a-button', 'some-modifier-value'], or even ['a-button', ['some-modifier-value-1', 'some-modifier-value-2']]
The text was updated successfully, but these errors were encountered:
I did a little bit of testing with this and it appears to be an issue in the parsing of the array. If I break out each of the items into a separate print statement, it seems to work properly.
twig.js:^1.15.4
{% set classes = [ 'a-button', modifier ? modifier, ] %}
This returns now
{ classes: [ 0: undefined ] }
Normally, if
modifier
is not exist, we should return only['a-button']
. Or if it's exist -> it should return['a-button', 'some-modifier-value']
, or even['a-button', ['some-modifier-value-1', 'some-modifier-value-2']]
The text was updated successfully, but these errors were encountered: