From 6e30b98661316e4e7ec79cf519699a567dbeaf19 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Sun, 20 Oct 2024 07:55:02 +0400 Subject: [PATCH] Block Editor: No need to unlock public actions --- packages/block-editor/src/components/tool-selector/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/tool-selector/index.js b/packages/block-editor/src/components/tool-selector/index.js index d4ba5d58ea61eb..8c4b5c86c40828 100644 --- a/packages/block-editor/src/components/tool-selector/index.js +++ b/packages/block-editor/src/components/tool-selector/index.js @@ -18,7 +18,6 @@ import { Icon, edit as editIcon } from '@wordpress/icons'; * Internal dependencies */ import { store as blockEditorStore } from '../../store'; -import { unlock } from '../../lock-unlock'; const selectIcon = ( select( blockEditorStore ).__unstableGetEditorMode(), [] ); - const { __unstableSetEditorMode } = unlock( - useDispatch( blockEditorStore ) - ); + const { __unstableSetEditorMode } = useDispatch( blockEditorStore ); return (