summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-01 08:30:33 -0400
committerChristopher Speller <crspeller@gmail.com>2016-11-01 08:30:33 -0400
commitdb80a819f76d5457880a078ec70b1e05fbb1df60 (patch)
tree6d7d6286fc1902a64b8c41b8880314ffa49bbdf7
parent546af6dfb8bd900d8c45d3bc61412c79802a6da3 (diff)
downloadchat-db80a819f76d5457880a078ec70b1e05fbb1df60.tar.gz
chat-db80a819f76d5457880a078ec70b1e05fbb1df60.tar.bz2
chat-db80a819f76d5457880a078ec70b1e05fbb1df60.zip
Fix opening RHS (#4402)
* Fix opening RHS * Add fix for draft itself
-rw-r--r--webapp/components/create_comment.jsx2
-rw-r--r--webapp/components/textbox.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 4b5134d23..df91c72ad 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -53,7 +53,7 @@ export default class CreateComment extends React.Component {
const draft = PostStore.getCommentDraft(this.props.rootId);
this.state = {
- messageText: draft.message,
+ messageText: draft.messageText,
uploadsInProgress: draft.uploadsInProgress,
fileInfos: draft.fileInfos,
submitting: false,
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx
index bf87d4d45..0164c29ec 100644
--- a/webapp/components/textbox.jsx
+++ b/webapp/components/textbox.jsx
@@ -121,7 +121,7 @@ export default class Textbox extends React.Component {
}
render() {
- const hasText = this.props.messageText.length > 0;
+ const hasText = this.props.messageText && this.props.messageText.length > 0;
let previewLink = null;
if (Utils.isFeatureEnabled(PreReleaseFeatures.MARKDOWN_PREVIEW)) {