diff --git a/webapp/components/file_attachment_list/index.js b/webapp/components/file_attachment_list/index.js index 4081e4220d..b9016defb7 100644 --- a/webapp/components/file_attachment_list/index.js +++ b/webapp/components/file_attachment_list/index.js @@ -16,7 +16,7 @@ function makeMapStateToProps() { let fileCount = 0; if (ownProps.post.file_ids) { fileCount = ownProps.post.file_ids.length; - } else if (this.props.post.filenames) { + } else if (ownProps.post.filenames) { fileCount = ownProps.post.filenames.length; }