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
But that's not a really clean solution. I think it makes more sense to fix it here.
Opening the issue for now, but I can try to open a PR later, if time permits (I'm about to head off on PTO for 2 weeks, so I'm unsure if I'll get to it before then or not).
There is a slight issue with the
add_attributes()
function on storybook side:https://github.com/emulsify-ds/emulsify-twig-extensions/blob/master/packages/add-attributes-twig-extension/lib/add-attributes-twig-extension.js#L16-L24
value.includes('=')
assumes thatvalue
is a string. If it's an integer, it generates this error:value
should either be converted to a string prior to the check, or we should have a separate check to see ifvalue
is an integer.I'm able to fake it for now by just doing something like this in my twig, where I change my value to a string:
But that's not a really clean solution. I think it makes more sense to fix it here.
Opening the issue for now, but I can try to open a PR later, if time permits (I'm about to head off on PTO for 2 weeks, so I'm unsure if I'll get to it before then or not).
┆Issue is synchronized with this Clickup task by Unito
The text was updated successfully, but these errors were encountered: