From 5d44504caa904eedcb23ee0ccd8b85127ccb0c6e Mon Sep 17 00:00:00 2001 From: Gerardo Date: Thu, 13 Apr 2023 19:29:29 +0200 Subject: [PATCH] Mobile - BlockListItem - Don't spread the parentWith value to be pass down through restProps --- .../block-list/block-list-item.native.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/block-editor/src/components/block-list/block-list-item.native.js b/packages/block-editor/src/components/block-list/block-list-item.native.js index dc63db0b7551ab..31b5d05d005e96 100644 --- a/packages/block-editor/src/components/block-list/block-list-item.native.js +++ b/packages/block-editor/src/components/block-list/block-list-item.native.js @@ -170,23 +170,17 @@ function BlockListItemContent( { * @return {WPComponent|null} The rendered block list item or null if the block width is not provided. */ function BlockListItem( props ) { - const { - isGridItem, - numOfColumns, - parentWidth, - tileCount, - tileIndex, - ...restProps - } = props; + const { isGridItem, numOfColumns, tileCount, tileIndex, ...restProps } = + props; - if ( ! props.blockWidth ) { + if ( ! props?.blockWidth ) { return null; } if ( isGridItem ) { return (