Skip to content

Commit

Permalink
Pattern: Remove unused method returned from 'mapSelect' (WordPress#65073
Browse files Browse the repository at this point in the history
)


Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent 05066fa commit 13af7fd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,15 @@ function ReusableBlockEdit( {
hasPatternOverridesSource,
} = useSelect(
( select ) => {
const {
getBlocks,
getSettings,
getBlockEditingMode: _getBlockEditingMode,
} = select( blockEditorStore );
const { getBlocks, getSettings, getBlockEditingMode } =
select( blockEditorStore );
const { getBlockBindingsSource } = unlock( select( blocksStore ) );
// For editing link to the site editor if the theme and user permissions support it.
return {
innerBlocks: getBlocks( patternClientId ),
getBlockEditingMode: _getBlockEditingMode,
onNavigateToEntityRecord:
getSettings().onNavigateToEntityRecord,
editingMode: _getBlockEditingMode( patternClientId ),
editingMode: getBlockEditingMode( patternClientId ),
hasPatternOverridesSource: !! getBlockBindingsSource(
'core/pattern-overrides'
),
Expand Down

0 comments on commit 13af7fd

Please sign in to comment.