mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +01:00
Remove duplicate from document title autocomplete
This commit is contained in:
parent
05683ef81e
commit
9fca036edb
@ -26,7 +26,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
|
||||
asc: true,
|
||||
search: $viewValue
|
||||
}).then(function(data) {
|
||||
deferred.resolve(_.pluck(data.documents, 'title'));
|
||||
deferred.resolve(_.uniq(_.pluck(data.documents, 'title'), true));
|
||||
});
|
||||
return deferred.promise;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user