summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-07 15:57:43 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-07 15:58:08 -0500
commit68b8285eaf4ab704bfe868645b124e2ce6643b3f (patch)
treec96ed3e99b2ea43590151c4a8cd2a69254b7dac4 /web
parentb8b38c0c7269210451dc5fee81ef28ed4e8ae183 (diff)
downloadchat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.tar.gz
chat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.tar.bz2
chat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.zip
Fixed clearing post draft after a command is entered
Diffstat (limited to 'web')
-rw-r--r--web/react/components/create_post.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 9d7a19554..cbd23d804 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -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) {