diff --git a/packages/block-library/src/table/edit.js b/packages/block-library/src/table/edit.js index 5510d0031ff6be..95162f4e14c00b 100644 --- a/packages/block-library/src/table/edit.js +++ b/packages/block-library/src/table/edit.js @@ -95,7 +95,7 @@ function TableEdit( { attributes, setAttributes, insertBlocksAfter, - isSelected, + isSelected: isSingleSelected, } ) { const { hasFixedLayout, head, foot } = attributes; const [ initialRowCount, setInitialRowCount ] = useState( 2 ); @@ -340,10 +340,10 @@ function TableEdit( { } useEffect( () => { - if ( ! isSelected ) { + if ( ! isSingleSelected ) { setSelectedCell(); } - }, [ isSelected ] ); + }, [ isSingleSelected ] ); useEffect( () => { if ( hasTableCreated ) { @@ -565,9 +565,10 @@ function TableEdit( { ) }