Skip to content

Commit

Permalink
Merge 94b67c1 into 82affd7
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 10, 2019
2 parents 82affd7 + 94b67c1 commit 1156ec0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ducks/articleDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,7 @@ export default createReducer(
payload.remove('replyConnections').remove('relatedArticles')
)
)
.setIn(
['data', 'replyConnections'],
payload
.get('replyConnections')
.sort(
(a, b) =>
new Date(b.get('createdAt')) - new Date(a.get('createdAt'))
)
)
.setIn(['data', 'replyConnections'], payload.get('replyConnections'))
.updateIn(
['data', 'relatedArticles'],
articles =>
Expand Down

0 comments on commit 1156ec0

Please sign in to comment.