Skip to content
New issue

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

Issue with Reject Array Filter filter when using the Section Rendering API #1912

Open
procarrera opened this issue Feb 14, 2025 · 0 comments

Comments

@procarrera
Copy link

Hi everyone,

I am trying to use the new | reject filter for arrays. It works fine when the page is rendered normally (even though theme-check still considers it an unknown filter). However, when I fetch the same section using the Section Rendering API, it returns an error.

Liquid Code:
{% assign final_actives_promos = final_actives_promos | reject: 'display_name', promo.display_name %}

Error Message:
Liquid syntax error (snippets/cart-drawer line 53): Expected end_of_string but found dash in "{{final_actives_promos -check-: 'display_name', promo.display_name }}"

Has anyone encountered this issue or can provide some insights?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant