summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-11-05 23:57:01 +0100
committerFlorian Orben <florian.orben@gmail.com>2015-11-05 23:57:01 +0100
commit4dedb14467ee79f21cdaa8db696c4cac0fb120de (patch)
tree6372be661d4ba17331069c3fa0e74d439ba7db95 /web/react
parente00836f8df00670e8c02daad7e02a13283ddb92f (diff)
downloadchat-4dedb14467ee79f21cdaa8db696c4cac0fb120de.tar.gz
chat-4dedb14467ee79f21cdaa8db696c4cac0fb120de.tar.bz2
chat-4dedb14467ee79f21cdaa8db696c4cac0fb120de.zip
remove two unused assignments
Diffstat (limited to 'web/react')
-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);