Skip to content

Commit

Permalink
Fix selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 5, 2024
1 parent 50eedab commit 537c271
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import inserterMediaCategories from '../media-categories';
import { mediaUpload } from '../../utils';
import { store as editorStore } from '../../store';

const __experimentalSelectBlockPatterns = ( select ) =>
select( coreStore ).getBlockPatterns();

const EMPTY_BLOCKS_LIST = [];

const BLOCK_EDITOR_SETTINGS = [
Expand Down Expand Up @@ -86,7 +89,6 @@ const BLOCK_EDITOR_SETTINGS = [
*/
function useBlockEditorSettings( settings, postType, postId ) {
const isLargeViewport = useViewportMatch( 'medium' );
const { getBlockPatterns } = useSelect( coreStore );
const {
allowRightClickOverrides,
blockTypes,
Expand Down Expand Up @@ -247,7 +249,7 @@ function useBlockEditorSettings( settings, postType, postId ) {
keepCaretInsideBlock,
mediaUpload: hasUploadPermissions ? mediaUpload : undefined,
__experimentalBlockPatterns: blockPatterns,
__experimentalSelectBlockPatterns: getBlockPatterns,
__experimentalSelectBlockPatterns,
__experimentalReusableBlocks: reusableBlocks,
__experimentalBlockPatternCategories: blockPatternCategories,
__experimentalUserPatternCategories: userPatternCategories,
Expand Down Expand Up @@ -290,7 +292,6 @@ function useBlockEditorSettings( settings, postType, postId ) {
reusableBlocks,
userPatternCategories,
blockPatterns,
getBlockPatterns,
blockPatternCategories,
canUseUnfilteredHTML,
undo,
Expand Down

0 comments on commit 537c271

Please sign in to comment.