Skip to content

Commit

Permalink
Make sure __experimentalSelectBlockPatterns exists before calling
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 12, 2024
1 parent e659119 commit 2a5cd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export const getAllPatterns = createRegistrySelector( ( select ) =>
return [
...userPatterns,
...__experimentalBlockPatterns,
...( __experimentalSelectBlockPatterns( select ) ?? [] ),
...( __experimentalSelectBlockPatterns?.( select ) ?? [] ),
].filter(
( x, index, arr ) =>
index === arr.findIndex( ( y ) => x.name === y.name )
Expand Down

0 comments on commit 2a5cd4f

Please sign in to comment.