PLT-4205 Fixed pending posts always being considered as part of a post thread (#4488)

Этот коммит содержится в:
Harrison Healey
2016-11-08 11:47:42 -05:00
коммит произвёл GitHub
родитель cb281ac714
Коммит 13dcccc60b

Просмотреть файл

@@ -272,11 +272,13 @@ export default class PostList extends React.Component {
commentRootId = post.id;
}
for (const postId in posts) {
if (posts[postId].root_id === commentRootId) {
commentCount += 1;
if (posts[postId].user_id === userId) {
shouldHighlightThreads = true;
if (commentRootId) {
for (const postId in posts) {
if (posts[postId].root_id === commentRootId) {
commentCount += 1;
if (posts[postId].user_id === userId) {
shouldHighlightThreads = true;
}
}
}
}