Fix 'user_id' of undefined JS error (#6878)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
06814885a0
Коммит
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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user