Commit 17508665 authored by Shpuld Shpludson's avatar Shpuld Shpludson

fetch users even when we have some results for better results

parent 9c2c0099
Pipeline #14930 passed with stages
in 4 minutes and 24 seconds
......@@ -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
......
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