summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/create_comment.jsx1
-rw-r--r--web/react/components/create_post.jsx1
2 files changed, 0 insertions, 2 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx
index 6fb473ae6..058594165 100644
--- a/web/react/components/create_comment.jsx
+++ b/web/react/components/create_comment.jsx
@@ -109,7 +109,6 @@ export default class CreateComment extends React.Component {
post.pending_post_id = `${userId}:${time}`;
post.user_id = userId;
post.create_at = time;
- post.attachments = [];
PostStore.storePendingPost(post);
PostStore.storeCommentDraft(this.props.rootId, null);
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 90ba47718..5a69c9bfb 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -173,7 +173,6 @@ export default class CreatePost extends React.Component {
post.create_at = time;
post.root_id = this.state.rootId;
post.parent_id = this.state.parentId;
- post.attachments = [];
const channel = ChannelStore.get(this.state.channelId);