summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/file_attachment_list/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/file_attachment_list/index.js b/webapp/components/file_attachment_list/index.js
index 4081e4220..b9016defb 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;
}