Skip to content

Commit

Permalink
Refactor orderedCourses method in CourseExtensionIdeasController
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Jul 11, 2024
1 parent 039e684 commit 55e31aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/vote/course-extension-ideas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default class CourseExtensionIdeasController extends Controller {
}

get orderedCourses() {
return this.model.courseExtensionIdeas.mapBy('course').uniq().sortBy('sortPositionForTrack');
return this.model.courseExtensionIdeas
.mapBy('course')
.uniq()
.rejectBy('releaseStatusIsDeprecated')
.rejectBy('releaseStatusIsAlpha')
.sortBy('sortPositionForTrack');
}

get selectedCourse() {
Expand Down

0 comments on commit 55e31aa

Please sign in to comment.