diff --git a/src/block/icon-list-item/edit.js b/src/block/icon-list-item/edit.js index ec0ff272d..4e78765fe 100644 --- a/src/block/icon-list-item/edit.js +++ b/src/block/icon-list-item/edit.js @@ -156,7 +156,7 @@ const Edit = props => { openEvenIfUnselected={ true } hasLinearGradient={ false } /> } - { ! ordered && ! icon && + { ! ordered && ! icon && parentUniqueId && { let childBlocks = [] if ( blockAttributes.length > 1 ) { - childBlocks = blockAttributes.map( ( { content } ) => { - return createBlock( 'stackable/icon-list-item', { text: content } ) + childBlocks = blockAttributes.map( ( { content, text } ) => { + return createBlock( 'stackable/icon-list-item', { text: content ?? text ?? '' } ) } ) } else if ( blockAttributes.length === 1 ) { const value = create( { - html: blockAttributes[ 0 ].content, + html: blockAttributes[ 0 ].content ?? blockAttributes[ 0 ].text ?? '', } ) childBlocks = split( value, '\n' ).map( result => { return createBlock( 'stackable/icon-list-item', {