Skip to content

Commit

Permalink
resources/js/directives/mentors.js: Update filtering condition
Browse files Browse the repository at this point in the history
Mentors of *completed* projects from *GSoC19* will be filtered for the 
mentors page

Closes: coala#777
  • Loading branch information
chttrjeankr committed Jun 3, 2020
1 parent 95792af commit 491b826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/directives/mentors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ angular.module('coala')

$http.get('data/projects.liquid')
.then(function (res) {
$scope.projects = res.data.filter(project => project.status != "completed")
$scope.projects = res.data.filter(project => project.status == "completed" && project.initiatives.includes("GSoC19"))
angular.forEach($scope.projects, function (value, key) {
angular.forEach(value.mentors, function (value, key) {
self.mentorsList[value] = {
Expand Down

0 comments on commit 491b826

Please sign in to comment.