-
Notifications
You must be signed in to change notification settings - Fork 219
Style Book: Fix Featured Product and Featured Category Blocks preview #8313
Conversation
This is because by the time we reach this line, innerBlocks will be an empty array (or we wouldn't make it this far) and if nextBlocks contains ANY items it will, by definition be unequal, so a length check is simpler and more performant. Also we can remove the dependence on yet another lodash function by doing it this way.
…om/woocommerce/woocommerce-blocks into fix/products-by-category-stylebook
…ocks into fix/products-by-category-stylebook
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +15 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tests well.💪
And thanks for detailed testing steps - I wasn't aware of Style Book, so TIL!
I noticed that there are some additional commits displayed in the commits list. I assume you checked out from some other branch, while the original branch was squashed and merged, but I'm mentioning it in case that wasn't intended:
Anyway, approving 👍
The commits belong to this PR that it has been merged. Thanks for the review! I'm going to merge the PR 💪 |
This PR fixes the Style Book preview for the Featured Product and Featured Category Blocks.
Screenshots
Testing
User Facing Testing
WooCommerce Visibility
Performance Impact
Changelog