Fixed clearing post draft after a command is entered

This commit is contained in:
Harrison Healey
2016-03-07 15:57:43 -05:00
parent b8b38c0c72
commit 68b8285eaf

View File

@@ -130,7 +130,7 @@ class CreatePost extends React.Component {
post.message,
false,
(data) => {
PostStore.storeDraft(data.channel_id, null);
PostStore.storeDraft(this.state.channelId, null);
this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null});
if (data.goto_location && data.goto_location.length > 0) {