fix(composer): fix bug where message body says undefined

This commit is contained in:
Evan Morikawa 2015-02-23 09:34:27 -08:00
parent 25acabc3a0
commit 3b0fc853fb

View file

@ -105,5 +105,8 @@ ContenteditableComponent = React.createClass
@props.html
else
quoteStart = @_htmlQuotedTextStart()
@props.html.substr(0, quoteStart) unless quoteStart is -1
if quoteStart is -1
return @props.html
else
return @props.html.substr(0, quoteStart)