From cbd42b277b7147172fc0de1f4caae529b1def842 Mon Sep 17 00:00:00 2001 From: Eve Essex Date: Thu, 17 Aug 2017 16:20:39 -0400 Subject: [PATCH] kill handleBackspace error --- client/apps/edit/components/content2/sections/text/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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