Skip to content

Commit

Permalink
Switch to getEditorMode selector
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Nov 28, 2024
1 parent 13cbc45 commit 05081d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* WordPress dependencies
*/
import { createSelector, createRegistrySelector } from '@wordpress/data';
import { store as preferencesStore } from '@wordpress/preferences';

/**
* Internal dependencies
Expand Down Expand Up @@ -118,7 +117,7 @@ export const getEnabledClientIdsTree = createRegistrySelector( ( select ) =>
state.blockEditingModes,
state.settings.templateLock,
state.blockListSettings,
select( preferencesStore ).get( 'core', 'editorTool' ),
select( STORE_NAME ).__unstableGetEditorMode( state ),
] )
);

Expand Down

0 comments on commit 05081d0

Please sign in to comment.