diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-01 18:46:41 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-11-01 15:46:41 -0700 |
commit | 9f6ba5e031ee4a621a319523823562916e6532c2 (patch) | |
tree | 18d9429bd383c35786f31cc092aad16a60c7a9e1 /webapp/stores/post_store.jsx | |
parent | 4cd68b58cf7a7d8cbc1455e35c0e53f6819686f5 (diff) | |
download | chat-9f6ba5e031ee4a621a319523823562916e6532c2.tar.gz chat-9f6ba5e031ee4a621a319523823562916e6532c2.tar.bz2 chat-9f6ba5e031ee4a621a319523823562916e6532c2.zip |
PLT-4595 Fixed post drafts and renamed some fields to be consistent (#4418)
* PLT-4595 Fixed post drafts and renamed some fields to be consistent
* Removed unused state from CreatePost
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r-- | webapp/stores/post_store.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index 6adc03bad..a4e49fc98 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -515,7 +515,7 @@ class PostStoreClass extends EventEmitter { normalizeDraft(originalDraft) { let draft = { - messageText: '', + message: '', uploadsInProgress: [], fileInfos: [] }; @@ -523,7 +523,7 @@ class PostStoreClass extends EventEmitter { // Make sure that the post draft is non-null and has all the required fields if (originalDraft) { draft = { - messageText: originalDraft.messageText || draft.messageText, + message: originalDraft.message || draft.message, uploadsInProgress: originalDraft.uploadsInProgress || draft.uploadsInProgress, fileInfos: originalDraft.fileInfos || draft.fileInfos }; |