Update mattermost-redux to master (#6982)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
9731eb4764
Коммит
5ae701d133
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user