From 4dedb14467ee79f21cdaa8db696c4cac0fb120de Mon Sep 17 00:00:00 2001 From: Florian Orben Date: Thu, 5 Nov 2015 23:57:01 +0100 Subject: remove two unused assignments --- web/react/components/create_comment.jsx | 1 - web/react/components/create_post.jsx | 1 - 2 files changed, 2 deletions(-) (limited to 'web') 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); -- cgit v1.2.3-1-g7c22