diff --git a/packages/block-editor/src/store/reducer.js b/packages/block-editor/src/store/reducer.js index 1e09ec98f005ab..edae9c392c37de 100644 --- a/packages/block-editor/src/store/reducer.js +++ b/packages/block-editor/src/store/reducer.js @@ -2355,7 +2355,7 @@ function getDerivedBlockEditingModesForTree( return; } - derivedBlockEditingModes.set( clientId, 'contentOnly' ); + // Else do nothing, use the default block editing mode. return; } diff --git a/packages/block-editor/src/store/test/reducer.js b/packages/block-editor/src/store/test/reducer.js index b539afde9e0258..dd1665d6736ada 100644 --- a/packages/block-editor/src/store/test/reducer.js +++ b/packages/block-editor/src/store/test/reducer.js @@ -3828,7 +3828,6 @@ describe( 'state', () => { expect( initialState.derivedBlockEditingModes ).toEqual( new Map( Object.entries( { - 'root-pattern': 'contentOnly', 'pattern-paragraph': 'disabled', 'pattern-group': 'disabled', 'pattern-paragraph-with-overrides': 'contentOnly', @@ -3883,7 +3882,6 @@ describe( 'state', () => { expect( derivedBlockEditingModes ).toEqual( new Map( Object.entries( { - 'root-pattern': 'contentOnly', // Pattern and section. 'pattern-paragraph': 'disabled', 'pattern-group': 'disabled', 'pattern-paragraph-with-overrides': 'contentOnly', // Pattern child with bindings. @@ -3903,7 +3901,7 @@ describe( 'state', () => { 'paragraph-1': 'contentOnly', // Content block in section. 'group-2': 'disabled', 'paragraph-2': 'contentOnly', // Content block in section. - 'root-pattern': 'contentOnly', // Pattern and section. + 'root-pattern': 'contentOnly', // Section. 'pattern-paragraph': 'disabled', 'pattern-group': 'disabled', 'pattern-paragraph-with-overrides': 'contentOnly', // Pattern child with bindings.