Skip to content

Commit

Permalink
Fix bug on empty rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras committed Nov 11, 2024
1 parent 034ad96 commit e3b63df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/uni_app/lib/controller/parsers/parser_exams.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ParserExams {
.text
.split(',')
.map((e) => e.trim())
.where((e) => e.isNotEmpty)
.toList();
}
final DateTime begin;
Expand Down
4 changes: 1 addition & 3 deletions packages/uni_app/lib/view/academic_path/exam_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ class _ExamsPageState extends State<ExamsPage> {
card: ExamCard(
name: exam.subject,
acronym: exam.subjectAcronym,
rooms: exam.rooms
.where((room) => room.isNotEmpty)
.toList(),
rooms: exam.rooms,
type: exam.examType,
startTime: exam.formatTime(exam.start),
isInvisible: hiddenExams.contains(exam.id),
Expand Down

0 comments on commit e3b63df

Please sign in to comment.