diff --git a/client/apps/edit/components/content2/sections/text/index.coffee b/client/apps/edit/components/content2/sections/text/index.coffee index 07c51fc86..775711d9b 100644 --- a/client/apps/edit/components/content2/sections/text/index.coffee +++ b/client/apps/edit/components/content2/sections/text/index.coffee @@ -93,7 +93,7 @@ module.exports = React.createClass selection = Utils.getSelectionDetails(@state.editorState) # only merge a section if cursor is in first character of first block if selection.isFirstBlock and selection.anchorOffset is 0 and - @props.sections.models[@props.index - 1].get('type') is 'text' + @props.sections.models[@props.index - 1]?.get('type') is 'text' mergeIntoHTML = @props.sections.models[@props.index - 1].get('body') @props.sections.models[@props.index - 1].destroy() newHTML = mergeIntoHTML + @state.html