diff --git a/packages/uni_app/lib/controller/parsers/parser_exams.dart b/packages/uni_app/lib/controller/parsers/parser_exams.dart index 99a04cb6c..1506e72f9 100644 --- a/packages/uni_app/lib/controller/parsers/parser_exams.dart +++ b/packages/uni_app/lib/controller/parsers/parser_exams.dart @@ -58,6 +58,7 @@ class ParserExams { .text .split(',') .map((e) => e.trim()) + .where((e) => e.isNotEmpty) .toList(); } final DateTime begin; diff --git a/packages/uni_app/lib/view/academic_path/exam_page.dart b/packages/uni_app/lib/view/academic_path/exam_page.dart index 7874f40c7..0e8332b4d 100644 --- a/packages/uni_app/lib/view/academic_path/exam_page.dart +++ b/packages/uni_app/lib/view/academic_path/exam_page.dart @@ -82,9 +82,7 @@ class _ExamsPageState extends State { 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),