diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-08-20 15:26:49 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-08-20 15:26:49 -0400 |
commit | 19123e5523453d7c4e9caad4794a2942c5ce5aa4 (patch) | |
tree | edec93b63e2b82332d60a9ee701610c2b9d6d65e /web/react/components/create_post.jsx | |
parent | 626c7d525cfdb65f95afb6674dba033b00d97f6b (diff) | |
parent | a1859fb34151fb17df7454178fad17021a3467ed (diff) | |
download | chat-19123e5523453d7c4e9caad4794a2942c5ce5aa4.tar.gz chat-19123e5523453d7c4e9caad4794a2942c5ce5aa4.tar.bz2 chat-19123e5523453d7c4e9caad4794a2942c5ce5aa4.zip |
Merge pull request #424 from mattermost/mm-1987
MM-1987 Fixing posts not being able to upload
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx index 3aa8cc39b..efaa40577 100644 --- a/web/react/components/create_post.jsx +++ b/web/react/components/create_post.jsx @@ -223,7 +223,7 @@ module.exports = React.createClass({ var previews = []; var messageText = ''; - var uploadsInProgress = 0; + var uploadsInProgress = []; if (draft && draft.previews && draft.message) { previews = draft.previews; messageText = draft.message; @@ -239,7 +239,7 @@ module.exports = React.createClass({ var draft = PostStore.getCurrentDraft(); var previews = []; var messageText = ''; - var uploadsInProgress = 0; + var uploadsInProgress = []; if (draft && draft.previews && draft.message) { previews = draft.previews; messageText = draft.message; |