Error if no block pattern has a category #28237
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Status] Needs More Info
Follow-up required in order to be actionable.
Description
If no registered block patterns has a category the editor errors.
I haven't really dug deep into the code but I think this looks like assuming there always is a category:
gutenberg/packages/block-editor/src/components/inserter/block-patterns-tab.js
Lines 40 to 42 in 7d61a5c
Step-by-step reproduction instructions
remove_theme_support( 'core-block-patterns' );
orunregister_block_pattern()
)Expected behaviour
Actual behaviour
Screenshots or screen recording (optional)
Code snippet (optional)
WordPress information
The text was updated successfully, but these errors were encountered: