summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/create_post.jsx4
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;