Commit d2d451b1 authored by NataliaTepluhina's avatar NataliaTepluhina

Merge branch...

Merge branch '327822-some-users-are-duplicated-in-issue-assignees-search-results' of https://gitlab.com/gitlab-org/gitlab into 327822-some-users-are-duplicated-in-issue-assignees-search-results
parents 66c77024 d38364d1
...@@ -127,6 +127,8 @@ export default { ...@@ -127,6 +127,8 @@ export default {
user.username.toLowerCase().includes(this.search.toLowerCase()), user.username.toLowerCase().includes(this.search.toLowerCase()),
); );
const mergedSearchResults = searchResults.reduce((acc, current) => { const mergedSearchResults = searchResults.reduce((acc, current) => {
// Some users are duplicated in the query result:
// https://gitlab.com/gitlab-org/gitlab/-/issues/327822
if (!acc.some((user) => current.username === user.username)) { if (!acc.some((user) => current.username === user.username)) {
acc.push(current); acc.push(current);
} }
......
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