From 55a701641146dc4c5c2cb2162ce581e59f176716 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 21 Oct 2024 19:26:08 +0900 Subject: [PATCH] Block Editor: No need to unlock public actions (#66260) Co-authored-by: Mamaduka Co-authored-by: youknowriad --- 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 d4ba5d58ea61e..8c4b5c86c4082 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 (