summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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 d9e67836d..6ab4af880 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -40,7 +40,7 @@ export default class CreatePost extends React.Component {
let previews = [];
let messageText = '';
let uploadsInProgress = [];
- if (draft && draft.previews && draft.message) {
+ if (draft && (draft.message || (draft.previews && draft.previews.length))) {
previews = draft.previews;
messageText = draft.message;
uploadsInProgress = draft.uploadsInProgress;
@@ -258,7 +258,7 @@ export default class CreatePost extends React.Component {
let previews = [];
let messageText = '';
let uploadsInProgress = [];
- if (draft && draft.previews && draft.message) {
+ if (draft && (draft.message || (draft.previews && draft.previews.length))) {
previews = draft.previews;
messageText = draft.message;
uploadsInProgress = draft.uploadsInProgress;