We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f5ee31 + f8f0c8a commit 680dbb7Copy full SHA for 680dbb7
src/projects/actions/projectTopics.js
@@ -62,7 +62,7 @@ const getTopicsWithComments = (projectId, tag) => {
62
return Promise.all(additionalPosts)
63
.then(postArr => {
64
_.forEach(postArr, (p) => {
65
- const topic = _.find(topics, t => p.topicId)
+ const topic = _.find(topics, t => t.id === p.topicId)
66
topic.posts = _.sortBy(topic.posts.concat(p.posts), ['id'])
67
})
68
return { topics, totalCount }
0 commit comments