diff --git a/packages/block-editor/src/components/inserter/block-patterns-tab.js b/packages/block-editor/src/components/inserter/block-patterns-tab.js index 0a11200cab7e75..127077ae296625 100644 --- a/packages/block-editor/src/components/inserter/block-patterns-tab.js +++ b/packages/block-editor/src/components/inserter/block-patterns-tab.js @@ -31,7 +31,7 @@ function BlockPatternsCategory( { () => allCategories.filter( ( category ) => allPatterns.some( ( pattern ) => - pattern.categories.includes( category.name ) + pattern.categories?.includes( category.name ) ) ), [ allPatterns, allCategories ]