diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-08-02 11:25:27 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-08-02 08:25:27 -0700 |
commit | dab299c9af9f1bb7477527f527d126fa6df12ebd (patch) | |
tree | f23cccda8e247b7b9d783596ddd6c245d99e3573 /webapp/components/create_comment/index.js | |
parent | 4d452143947e285045b793654c3752027cd1af63 (diff) | |
download | chat-dab299c9af9f1bb7477527f527d126fa6df12ebd.tar.gz chat-dab299c9af9f1bb7477527f527d126fa6df12ebd.tar.bz2 chat-dab299c9af9f1bb7477527f527d126fa6df12ebd.zip |
Fix commenting on deleted post (#7095)
Diffstat (limited to 'webapp/components/create_comment/index.js')
-rw-r--r-- | webapp/components/create_comment/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/components/create_comment/index.js b/webapp/components/create_comment/index.js new file mode 100644 index 000000000..50017461a --- /dev/null +++ b/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); |