Skip to content

Commit

Permalink
FIX: not showing any search results when scoped on user
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Oct 8, 2014
1 parent b47c1de commit 7ef2f48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/javascripts/discourse/lib/search-for-term.js.es6
Expand Up @@ -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);
});
Expand Down

0 comments on commit 7ef2f48

Please sign in to comment.