summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-07 17:18:34 -0500
committerChristopher Speller <crspeller@gmail.com>2016-03-07 17:18:34 -0500
commitb001507bedbc3c09fea2921b11e8825002f999cc (patch)
treeb51dee3bc9fda13509a8a6948099551d49a5be6f /web
parent04a194d80271f0681288c05f118ce311c3c2d32e (diff)
parent68b8285eaf4ab704bfe868645b124e2ce6643b3f (diff)
downloadchat-b001507bedbc3c09fea2921b11e8825002f999cc.tar.gz
chat-b001507bedbc3c09fea2921b11e8825002f999cc.tar.bz2
chat-b001507bedbc3c09fea2921b11e8825002f999cc.zip
Merge pull request #2368 from hmhealey/plt2227
PLT-2227 Properly cleared the 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 48d28ad6a..62319b1a7 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) {