Skip to content
Snippets Groups Projects
Commit 17508665 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

fetch users even when we have some results for better results

parent 9c2c0099
Branches
No related tags found
No related merge requests found
......@@ -85,8 +85,8 @@ export const suggestUsers = data => input => {
replacement: '@' + screen_name + ' '
}))
// BE search users if there are no matches
if (newUsers.length === 0 && data.updateUsersList) {
// BE search users if there's less matches than we can show
if (newUsers.length < 5 && data.updateUsersList) {
debounceUserSearch(data, noPrefix)
}
return newUsers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment