Skip to content

Commit

Permalink
don't request contributor data if there are no contributors
Browse files Browse the repository at this point in the history
Also specify a number of results to return.
  • Loading branch information
haarg committed Sep 25, 2016
1 parent b97dafc commit ddfa006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion root/static/js/contributors.js
Expand Up @@ -64,6 +64,9 @@ $(function(){
});
}
});
if (filter.length == 0) {
return;
}

var query = {
"query" : {
Expand All @@ -77,7 +80,8 @@ $(function(){
"email",
"pauseid",
"gravatar_url"
]
],
size: filter.length
};

$.ajax({
Expand Down

0 comments on commit ddfa006

Please sign in to comment.