Remove duplicates search results (#661)

parent 67b6700a
......@@ -9,7 +9,7 @@ function results(state = [], action) {
switch (action.type) {
case SearchTypes.RECEIVED_SEARCH_POSTS: {
if (action.isGettingMore) {
return state.concat(action.data.order);
return [...new Set(state.concat(action.data.order))];
}
return action.data.order;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment