Skip to content

Commit 9186964

Browse files
authored
Remove unnecessary/incorrect unlock call in setEditorMode action (#64073)
Co-authored-by: talldan <talldanwp@git.wordpress.org>
1 parent e744018 commit 9186964

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/block-editor/src/store/actions.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
privateRemoveBlocks,
3636
} from './private-actions';
3737
import { STORE_NAME } from './constants';
38-
import { unlock } from '../lock-unlock';
3938

4039
/** @typedef {import('../components/use-on-block-drop/types').WPDropOperation} WPDropOperation */
4140

@@ -1674,9 +1673,9 @@ export const __unstableSetEditorMode =
16741673
// When switching to zoom-out mode, we need to select the parent section
16751674
if ( mode === 'zoom-out' ) {
16761675
const firstSelectedClientId = select.getBlockSelectionStart();
1677-
const { sectionRootClientId } = unlock(
1678-
registry.select( STORE_NAME ).getSettings()
1679-
);
1676+
const { sectionRootClientId } = registry
1677+
.select( STORE_NAME )
1678+
.getSettings();
16801679
if ( firstSelectedClientId ) {
16811680
let sectionClientId;
16821681

0 commit comments

Comments
 (0)