Fix opening RHS (#4402)

* Fix opening RHS

* Add fix for draft itself
This commit is contained in:
Joram Wilander
2016-11-01 08:30:33 -04:00
committed by Christopher Speller
parent 546af6dfb8
commit db80a819f7
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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)) {