Skip to content

Commit

Permalink
filter all projects with 0 cached issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Sep 27, 2019
1 parent eef7312 commit d27aadc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion javascripts/projectsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,14 @@ define(['underscore'], function(_) {
}
}

var projects = _.map(ordering, function(i) {
var all_projects = _.map(ordering, function(i) {
return _projectsData.projects[i];
});

var projects = _.filter(all_projects, function(project) {
return project.stats ? project.stats['issue-count'] > 0 : true;
});

_.each(_projectsData.tags, function(tag) {
tagsMap[tag.name.toLowerCase()] = tag;
});
Expand Down

0 comments on commit d27aadc

Please sign in to comment.