From 5ae701d133f713363e52b9cc6aa01579c81ebab4 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 20 Jul 2017 08:56:23 -0400 Subject: Update mattermost-redux to master (#6982) --- webapp/components/file_attachment_list/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webapp/components/file_attachment_list/index.js') 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) { -- cgit v1.2.3-1-g7c22