SOLVED: Nested query issue in builder (term query)

Browser: Chrome 138.0.7204.169
OS: Windows

Hi bricks team,

I have a term query in the post query to use to display the color of the products in the query loop. The problem is that if the Current post term option is enabled in the Term query loop settings, which it definitely should be, it will cause the colors of the first item in the Builder to not render properly.

Query loop code

{"content":[{"id":"aoulam","name":"block","parent":"zibavu","children":["bfhubu"],"settings":{"_interactions":[{"id":"pnfeqc","trigger":"ajaxStart","ajaxQueryId":"bfhubu","action":"setAttribute","actionAttributeKey":"class","actionAttributeValue":"loop-loading"},{"id":"vxmdnz","trigger":"ajaxEnd","ajaxQueryId":"bfhubu","action":"removeAttribute","actionAttributeKey":"class","actionAttributeValue":"loop-loading"}],"_cssGlobalClasses":["hqfvyw"]},"label":"Loop grid"},{"id":"bfhubu","name":"block","parent":"aoulam","children":[],"settings":{},"label":"Loop item","properties":{"duhyap":{"post_type":["product"],"orderby":["meta_value","date"],"order":["asc","desc"],"meta_key":"_stock_status","posts_per_page":"8","no_results_template":"246","featured":true,"onSale":true},"woynka":{"post_type":["product"],"orderby":["meta_value","date"],"meta_key":"_stock_status","order":["asc","desc"],"posts_per_page":"8","no_results_template":"246"}},"cid":"egmvlq"}],"source":"bricksCopiedElements","sourceUrl":"https://avangtheme.ir","version":"2.0","globalClasses":[{"id":"hqfvyw","name":"Product-grid","settings":{"_display":"grid","_gridTemplateColumns":"minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)","_gridGap":"20","_gridTemplateColumns:mobile_portrait":"1fr 1fr"},"modified":1752269324,"user_id":1}],"globalElements":[]}

Thank you

Hi @HOSEIN,

I see that you are using a component. Can you export it as well, because now I can’t see/replicate the loop.

Or even better, if you can send temporary login credentials :slight_smile:

Best regards,
Matej

1 Like

Hi @HOSEIN,

thank you so much for the report. I was able to replicate the issue and I’ve added it to our internal bug tracker.

Matej

1 Like

We fixed this issue in Bricks 2.2 RC, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production website. It is intended for testing in a local or staging environment only.

1 Like

Hi @timmse,

It seems the problem still exists. There is a difference between builder and frontend, even if it is not in the form of a component.

Thanks

Hi @HOSEIN ,

Please send us admin credentials so we can have a look.

Regards,
Jenn

Hi @itchycode,

I just sent the access.

Thank you