1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

Fixed an issue with duplicate search results

Issue crept in during switch to lodash lib.
This commit is contained in:
McMatts 2019-03-13 15:15:43 +00:00
parent ca1e281775
commit b89a297c70

View file

@ -36,7 +36,7 @@ export default Component.extend({
let phrase = 'Nothing found';
if (docs.length > 0) {
duped = _.uniq(docs, function (item) {
duped = _.uniqBy(docs, function(item) {
return item.get('documentId');
});