Skip to content

Commit

Permalink
SAK-50198 Course List WC Only list terms once in filter (sakaiproject…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored Jun 18, 2024
1 parent a91527b commit dafa0cf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class SakaiCourseList extends SakaiElement {
this.termCourses.set(site.term, []);
}
this.termCourses.get(site.term).push(site);
this._availableTerms.push(this.terms.find(t => t.name === site.term));

if (!this._availableTerms.find(t => t.name === site.term)) {
this._availableTerms.push(this.terms.find(t => t.name === site.term));
}
}
})
.catch(error => console.error(error));
Expand Down

0 comments on commit dafa0cf

Please sign in to comment.