From 993b2eca2d2c3a226abd347eee1ecb3137b3af9a Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Mon, 4 Oct 2021 09:07:27 -0700 Subject: [PATCH] drop early continue --- packages/block-editor/src/components/list-view/branch.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/block-editor/src/components/list-view/branch.js b/packages/block-editor/src/components/list-view/branch.js index 334d0be4d1408..876fdcba28b6d 100644 --- a/packages/block-editor/src/components/list-view/branch.js +++ b/packages/block-editor/src/components/list-view/branch.js @@ -101,9 +101,6 @@ export default function ListViewBranch( props ) { if ( ! blockInView && nextPosition > start ) { // found the end of the window, don't bother processing the rest of the items break; - } else if ( ! blockInView ) { - // item is before beginning of window - continue; } const style = {