Skip to content

Commit

Permalink
Update packages/block-editor/src/components/block-patterns-list/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Dwyer <[email protected]>
  • Loading branch information
ntsekouras and scruffian authored May 10, 2024
1 parent c1e5967 commit 375a7f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function BlockPattern( {
// When we have a selected category and the pattern is draggable, we need to update the
// pattern's categories in metadata to only contain the selected category, and pass this to
// InserterDraggableBlocks component. We do that because we use this information for pattern
// suffling and makes more sense to show only the ones form the initially selected category during insertion.
// shuffling and it makes more sense to show only the ones from the initially selected category during insertion.
const patternBlocks = useMemo( () => {
if ( ! category || ! isDraggable ) {
return blocks;
Expand Down

0 comments on commit 375a7f2

Please sign in to comment.