File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/block-editor/src/store Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -2307,12 +2307,7 @@ function getDerivedBlockEditingModesForTree(
23072307 let ancestorBlockEditingMode ;
23082308 let parent = state . blocks . parents . get ( clientId ) ;
23092309 while ( parent !== undefined ) {
2310- // There's a chance we only just calculated this for the parent,
2311- // if so we can return that value for a faster lookup.
2312- if ( derivedBlockEditingModes . has ( parent ) ) {
2313- ancestorBlockEditingMode =
2314- derivedBlockEditingModes . get ( parent ) ;
2315- } else if ( state . blockEditingModes . has ( parent ) ) {
2310+ if ( state . blockEditingModes . has ( parent ) ) {
23162311 // Checking the explicit block editing mode will be slower,
23172312 // as the block editing mode is more likely to be set on a
23182313 // distant ancestor.
You can’t perform that action at this time.
0 commit comments