From 91e979f2356bd9413db9d6444af6c9c14e88c0be Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Tue, 30 Jul 2024 11:27:12 +0800 Subject: [PATCH] Remove unlock call in setEditorMode action --- packages/block-editor/src/store/actions.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/store/actions.js b/packages/block-editor/src/store/actions.js index f7da8fa14b382a..3a209a1267e288 100644 --- a/packages/block-editor/src/store/actions.js +++ b/packages/block-editor/src/store/actions.js @@ -35,7 +35,6 @@ import { privateRemoveBlocks, } from './private-actions'; import { STORE_NAME } from './constants'; -import { unlock } from '../lock-unlock'; /** @typedef {import('../components/use-on-block-drop/types').WPDropOperation} WPDropOperation */ @@ -1674,9 +1673,9 @@ export const __unstableSetEditorMode = // When switching to zoom-out mode, we need to select the parent section if ( mode === 'zoom-out' ) { const firstSelectedClientId = select.getBlockSelectionStart(); - const { sectionRootClientId } = unlock( - registry.select( STORE_NAME ).getSettings() - ); + const { sectionRootClientId } = registry + .select( STORE_NAME ) + .getSettings(); if ( firstSelectedClientId ) { let sectionClientId;