liquid icon indicating copy to clipboard operation
liquid copied to clipboard

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

Open procarrera opened this issue 10 months ago • 0 comments

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?

procarrera avatar Feb 14 '25 14:02 procarrera