Skip to content

Commit

Permalink
Fix creating a new lesson in the timetable (#1016)
Browse files Browse the repository at this point in the history
Fixes #1015
  • Loading branch information
nilsreichardt authored Sep 19, 2023
1 parent 200a966 commit 8a534c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/timetable/timetable_add/tabs/course_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _CourseList extends StatelessWidget {

final List<Course>? courseList;

List<Widget> getLines(List<Course> courseList, Course selectedCourse) {
List<Widget> getLines(List<Course> courseList, Course? selectedCourse) {
final list = <Widget>[];
for (int i = 0; i < courseList.length; i += 2) {
final first = _CourseTile(
Expand Down Expand Up @@ -69,7 +69,7 @@ class _CourseList extends StatelessWidget {
first: _JoinCourse(),
second: _CreateCourse(),
),
...getLines(courseList!, selectedCourse!),
...getLines(courseList!, selectedCourse),
],
),
),
Expand Down

0 comments on commit 8a534c7

Please sign in to comment.