mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix 'user_id' of undefined JS error (#6878)
This commit is contained in:
committed by
Saturnino Abril
parent
06814885a0
commit
a6ee8bb1ee
@@ -16,7 +16,7 @@ function mapStateToProps(state, ownProps) {
|
||||
let parentPostUser;
|
||||
if (ownProps.post.root_id) {
|
||||
parentPost = getPost(state, ownProps.post.root_id);
|
||||
parentPostUser = getUser(state, parentPost.user_id);
|
||||
parentPostUser = parentPost ? getUser(state, parentPost.user_id) : null;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user