Skip to content

Commit

Permalink
Fix editor crash when registering a block pattern without categories (
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Jan 4, 2021
1 parent 6ab4d7a commit 7d61a5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function BlockPatternsCategory( {
() =>
allCategories.filter( ( category ) =>
allPatterns.some( ( pattern ) =>
pattern.categories.includes( category.name )
pattern.categories?.includes( category.name )
)
),
[ allPatterns, allCategories ]
Expand Down

0 comments on commit 7d61a5c

Please sign in to comment.