Skip to content

Commit

Permalink
Fixes selection of courses of a school class when joining
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Sep 19, 2023
1 parent fcba637 commit 91e57f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/lib/groups/group_join/bloc/group_join_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GroupJoinBloc extends BlocBase {

final groupJoinResult = await _join(
joinValue: enteredValue,
courseList: [],
courseList: null,
);
_changeJoinResult(groupJoinResult);
}
Expand Down Expand Up @@ -87,11 +87,12 @@ class GroupJoinBloc extends BlocBase {

Future<GroupJoinResult> _join({
required String joinValue,
required List<GroupKey> courseList,
required List<GroupKey>? courseList,
}) {
return groupJoinFunction.runGroupJoinFunction(
enteredValue: joinValue,
coursesForSchoolClass: courseList.map((groupKey) => groupKey.id).toList(),
coursesForSchoolClass:
courseList?.map((groupKey) => groupKey.id).toList(),
);
}

Expand Down

0 comments on commit 91e57f2

Please sign in to comment.