mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
FIX: not showing any search results when scoped on user
This commit is contained in:
parent
b47c1defe0
commit
7ef2f48660
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ export default function searchForTerm(term, opts) {
|
|||
}
|
||||
});
|
||||
|
||||
var noResults = !!((results.topics.length === 0) && (results.posts.length === 0) && (results.categories.length === 0));
|
||||
var noResults = !!(results.topics.length === 0 &&
|
||||
results.posts.length === 0 &&
|
||||
results.users.length === 0 &&
|
||||
results.categories.length === 0);
|
||||
|
||||
return noResults ? null : Em.Object.create(results);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue