Skip to content

Commit

Permalink
kill handleBackspace error
Browse files Browse the repository at this point in the history
  • Loading branch information
eessex committed Aug 17, 2017
1 parent 7c6e811 commit cbd42b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbd42b2

Please sign in to comment.