WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.36k stars 4.13k forks source link

Query Loop block: block error with GB 19.3 RC1 when using block format support #65550

Open annezazu opened 1 day ago

annezazu commented 1 day ago

Using GB 19.3RC1 which includes https://github.com/WordPress/gutenberg/pull/64167, I found that after adding support to the TT4 theme, I wasn't able to get the query loop to properly filter with a format option when adding a query loop block to a page or a template. In this case, I had set a few posts to include an Image format in case that matters:

https://github.com/user-attachments/assets/33435441-78aa-4cc5-83fb-91f7fbb1788a

annezazu commented 1 day ago

cc @carolinan as you worked so hard on this ❤️

carolinan commented 1 day ago

Which WordPress version is used? Can you see what the error is in the browser's console? (how to open that will depend on the browser)

carolinan commented 1 day ago

Does this only happen when inserting this pattern, or with newly inserted query loops?

annezazu commented 1 day ago

Using version 6.6.2 and in Chrome Version 128.0.6613.85 on a Mac. I found this happened when adding a query loop block fresh and trying to customize it. I can also replicating when adding a Posts pattern with a query loop and trying to customize it.

Here's what I see in the console:

Screenshot 2024-09-22 at 6 31 03 PM

carolinan commented 1 day ago

Thank you.