Fix commenting on deleted post (#7095)

Этот коммит содержится в:
Joram Wilander
2017-08-02 11:25:27 -04:00
коммит произвёл Christopher Speller
родитель 4d45214394
Коммит dab299c9af
3 изменённых файлов: 62 добавлений и 79 удалений

16
webapp/components/create_comment/index.js Обычный файл
Просмотреть файл

@@ -0,0 +1,16 @@
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {connect} from 'react-redux';
import CreateComment from './create_comment.jsx';
function mapStateToProps(state, ownProps) {
const err = state.requests.posts.createPost.error || {};
return {
...ownProps,
createPostErrorId: err.server_error_id
};
}
export default connect(mapStateToProps)(CreateComment);