Query Loop: When a variation is picked via BlockVariationPicker
component, the post type is always "Post" instead of the one defined via the variation
#46367
Labels
[Block] Query Loop
Affects the Query Loop Block
[Type] Bug
An existing feature does not function as intended
Description
When a Query Loop variation is picked via the
BlockVariationPicker
component, the post type is "Post" instead of the one defined via the variation.This happens because the check at line 144 is wrong. We have to reverse it.
I noticed this issue working on the Product Query woocommerce/woocommerce-blocks#7852.
Step-by-step reproduction instructions
Start Blank
.Screenshots, screen recording, code snippet
Screen.Capture.on.2022-12-07.at.16-28-41.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: