Skip to content

Commit

Permalink
Merge pull request #102 from NIAEFEUP/101-fix-general-display
Browse files Browse the repository at this point in the history
update: change the condition to be in practicalLesson array
  • Loading branch information
Jumaruba authored Sep 1, 2022
2 parents 158aca2 + f579328 commit 715aaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/planner/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Schedule = ({ courseOptions, activeClassesT, activeClassesTP, showGrid }:
course: subject.course.info,
// A course schedule, may have more than one practical class.
practicalLesson: classes.map((item) =>
item.schedules.filter((elem) => elem.lesson_type === 'TP' && elem.class_name === subject.option.class_name)
item.schedules.filter((elem) => elem.lesson_type !== 'T' && elem.class_name === subject.option.class_name)
)[subjectIdx],
// A course schedule, may have more than one theoretical class.
theoreticalLessons: classes.map((item) =>
Expand Down

0 comments on commit 715aaa1

Please sign in to comment.