We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b72dae commit c711f26Copy full SHA for c711f26
packages/block-library/src/list/v2/migrate.js
@@ -30,7 +30,7 @@ export function createListBlockFromDOMElement( listElement ) {
30
const [ nestedList, ...nodes ] = children;
31
32
const hasNestedList =
33
- nestedList.tagName === 'UL' || nestedList.tagName === 'OL';
+ nestedList?.tagName === 'UL' || nestedList?.tagName === 'OL';
34
if ( ! hasNestedList ) {
35
return createBlock( 'core/list-item', {
36
content: listItem.innerHTML,
0 commit comments