Skip to content

Commit 055e5d0

Browse files
committed
use async method over asyn getter to retrieve sub learner-groups.
fixes a minor bug that only got unearthed when shuffling code around.
1 parent 2e73a22 commit 055e5d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/frontend/app/components/learner-group/calendar.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class LearnerGroupCalendarComponent extends Component {
5353
async loadEvents(learnerGroup, showSubgroupEvents) {
5454
let learnerGroupOfferings = await this.getEventsFromLearnerGroups([learnerGroup], false);
5555
if (showSubgroupEvents) {
56-
const subLearnerGroups = await learnerGroup.get('allDescendants');
56+
const subLearnerGroups = await learnerGroup.getAllDescendants();
5757
const subLearnerGroupOfferings = await this.getEventsFromLearnerGroups(
5858
subLearnerGroups,
5959
true,

0 commit comments

Comments
 (0)