Skip to content

Commit

Permalink
Fix error with when changing column count (#3714)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladanost authored and mtias committed Nov 29, 2017
1 parent cac31b0 commit 61497b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/text-columns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ registerBlockType( 'core/text-columns', {
<div className="wp-block-column" key={ `column-${ index }` }>
<Editable
tagName="p"
value={ content && content[ index ].children }
value={ content && content[ index ] && content[ index ].children }
onChange={ ( nextContent ) => {
setAttributes( {
content: [
Expand Down

0 comments on commit 61497b5

Please sign in to comment.