diff options
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/commented_on_files_message/commented_on_files_message.jsx | 2 | ||||
-rw-r--r-- | webapp/components/post_view/commented_on_files_message/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/post_view/commented_on_files_message/commented_on_files_message.jsx b/webapp/components/post_view/commented_on_files_message/commented_on_files_message.jsx index a8c6845c8..1755d68e4 100644 --- a/webapp/components/post_view/commented_on_files_message/commented_on_files_message.jsx +++ b/webapp/components/post_view/commented_on_files_message/commented_on_files_message.jsx @@ -45,7 +45,7 @@ export default class CommentedOnFilesMessage extends React.PureComponent { id='post_body.plusMore' defaultMessage=' plus {count, number} other {count, plural, one {file} other {files}}' values={{ - count: this.props.fileInfos.length + count: this.props.fileInfos.length - 1 }} /> ); diff --git a/webapp/components/post_view/commented_on_files_message/index.js b/webapp/components/post_view/commented_on_files_message/index.js index fd6aa7193..d55cff16b 100644 --- a/webapp/components/post_view/commented_on_files_message/index.js +++ b/webapp/components/post_view/commented_on_files_message/index.js @@ -15,7 +15,7 @@ function makeMapStateToProps() { return function mapStateToProps(state, ownProps) { let fileInfos; if (ownProps.parentPostId) { - fileInfos = selectFileInfosForPost(state, {id: ownProps.parentPostId}); + fileInfos = selectFileInfosForPost(state, ownProps.parentPostId); } return { |