diff --git a/packages/block-editor/src/components/list-view/use-list-view-scroll-into-view.js b/packages/block-editor/src/components/list-view/use-list-view-scroll-into-view.js index 1ce99deb3053a..bee9c3b87a729 100644 --- a/packages/block-editor/src/components/list-view/use-list-view-scroll-into-view.js +++ b/packages/block-editor/src/components/list-view/use-list-view-scroll-into-view.js @@ -9,7 +9,7 @@ export default function useListViewScrollIntoView( { selectedClientIds, rowItemRef, } ) { - const isSingleSelection = selectedClientIds?.length === 1; + const isSingleSelection = selectedClientIds.length === 1; useLayoutEffect( () => { // Skip scrolling into view if this particular block isn't selected,