Query loop inside JetEngine Component

If I use native bricks query builder all work fine, but if I try to make a custom PHP (I need it to control post type from component settings) nothing rendered on front end.

My code:

return [
  'post_type' => 'mycpt',
  'posts_per_page' => '-1',
];

Query container in source:


<li class="brx-query-trail" data-query-element-id="mdleyj" data-query-vars="{&quot;signature&quot;:&quot;94a71ee66b8efa92f31ba1ccceccb39e&quot;,&quot;user_id&quot;:1,&quot;time&quot;:1727864239,&quot;useQueryEditor&quot;:true,&quot;posts_per_page&quot;:&quot;10&quot;}" data-page="1" data-max-pages="0" data-query-loop-index="7660"></li>

Putting my query grid into a template and then adding that template to the component fixes the issue

@timmse Is this some kind of conflict with nested queries?