Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block categories - ensure that categories are unique by slug. (#62954)
* blocks/store/reducer // ensure that categories are unique by slug. Block categories can be registered through backend by hooking into the "block_categories_all"-filter or through frontend by calling wp.blocks.setCategories(). Both require an array of WPBlockCategory elements. This change aims for making the categories: WPBlockCategory[] with unique entries by slug to avoid rendering in Block Inserter all Blocks duplicated. See also: #50061 * eslint * blocks/store/reducer.js // add test case for unique catgories by slug. ---- Co-authored-by: Chrico <chrico@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org>
- Loading branch information
c6d7b2f
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.
Flaky tests detected in c6d7b2f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10209605288
📝 Reported issues:
/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js