Fix commenting on deleted post (#7095)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
4d45214394
Коммит
dab299c9af
16
webapp/components/create_comment/index.js
Обычный файл
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);
|
||||
Ссылка в новой задаче
Block a user