summaryrefslogtreecommitdiffstats
path: root/webapp/components/file_attachment_list/index.js
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-20 08:56:23 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2017-07-20 08:56:23 -0400
commit5ae701d133f713363e52b9cc6aa01579c81ebab4 (patch)
tree622aba2f53fa33812a92fbf41e250d2155776846 /webapp/components/file_attachment_list/index.js
parent9731eb476400a1eaf2fa45edfc724a35a25a9063 (diff)
downloadchat-5ae701d133f713363e52b9cc6aa01579c81ebab4.tar.gz
chat-5ae701d133f713363e52b9cc6aa01579c81ebab4.tar.bz2
chat-5ae701d133f713363e52b9cc6aa01579c81ebab4.zip
Update mattermost-redux to master (#6982)
Diffstat (limited to 'webapp/components/file_attachment_list/index.js')
-rw-r--r--webapp/components/file_attachment_list/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/file_attachment_list/index.js b/webapp/components/file_attachment_list/index.js
index b9016defb..1e901114b 100644
--- a/webapp/components/file_attachment_list/index.js
+++ b/webapp/components/file_attachment_list/index.js
@@ -11,7 +11,8 @@ import FileAttachmentList from './file_attachment_list.jsx';
function makeMapStateToProps() {
const selectFilesForPost = makeGetFilesForPost();
return function mapStateToProps(state, ownProps) {
- const fileInfos = selectFilesForPost(state, ownProps.post);
+ const postId = ownProps.post ? ownProps.post.id : '';
+ const fileInfos = selectFilesForPost(state, postId);
let fileCount = 0;
if (ownProps.post.file_ids) {